public function parseType($name)
    {
        //if the name is prefixed with the settings prefix
        if (strpos($name, $this->settingsPrefix) === 0) {
            return $this->type = 'settings';
        }
        //otherwise if the name is prefixed with the page prefix
        elseif (strpos($name, $this->pagePrefix) === 0) {
            return $this->type = 'page';
        }
        //otherwise it's a model
        else {
            return $this->type = 'model';
        }
    }
public function parseType($name)
    {
        //if the name is prefixed with the settings prefix
        if (strpos($name, $this->settingsPrefix) === 0) {
            return $this->type = 'settings';
        }
        //otherwise if the name is prefixed with the page prefix
        elseif (strpos($name, $this->pagePrefix) === 0) {
            return $this->type = 'page';
        }
        //otherwise it's a model
        else {
            return $this->type = 'model';
        }
    }
public function parseType ( $ name ) { //if the name is prefixed with the settings prefix if ( strpos ( $ name , $ this -> settingsPrefix ) === 0 ) { return $ this -> type = 'settings' ; } //otherwise if the name is prefixed with the page prefix elseif ( strpos ( $ name , $ this -> pagePrefix ) === 0 ) { return $ this -> type = 'page' ; } //otherwise it's a model else { return $ this -> type = 'model' ; } }
Determines whether a string is a model or settings config.

@param string $name

@return string
Determines whether a string is a model or settings config .