. */ /** * This class represents the AbstractSchemaName production in DQL grammar. * * * AbstractSchemaName = identifier * * * @package Doctrine * @subpackage Query * @author Janne Vanhala * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link www.phpdoctrine.org * @since 1.0 * @version $Revision$ */ class Doctrine_Query_Production_AbstractSchemaName extends Doctrine_Query_Production { /** * Executes the AbstractSchemaName production. * * * AbstractSchemaName = identifier * * * @param array $params This production does not take any parameters. * @return Doctrine_Table|null the table object corresponding the identifier * name */ public function execute(array $params = array()) { $token = $this->_parser->lookahead; if ($token['type'] === Doctrine_Query_Token::T_IDENTIFIER) { $this->_parser->match(Doctrine_Query_Token::T_IDENTIFIER); } else { $this->_parser->logError('Identifier expected'); } return $token; } }