2007-12-10 23:02:41 +03:00
|
|
|
<?php
|
|
|
|
/**
|
2008-01-13 01:32:45 +03:00
|
|
|
* RangeVariableDeclaration = AbstractSchemaName ["AS"] IdentificationVariable
|
2007-12-10 23:02:41 +03:00
|
|
|
*/
|
|
|
|
class Doctrine_Query_Production_RangeVariableDeclaration extends Doctrine_Query_Production
|
|
|
|
{
|
|
|
|
public function execute(array $params = array())
|
|
|
|
{
|
2008-01-18 01:01:40 +03:00
|
|
|
$abstractSchemaName = $this->AbstractSchemaName();
|
2007-12-10 23:02:41 +03:00
|
|
|
|
|
|
|
if ($this->_isNextToken(Doctrine_Query_Token::T_AS)) {
|
|
|
|
$this->_parser->match(Doctrine_Query_Token::T_AS);
|
|
|
|
}
|
2008-01-13 01:32:45 +03:00
|
|
|
|
2008-01-18 01:01:40 +03:00
|
|
|
$identifier = $this->IdentificationVariable();
|
|
|
|
|
|
|
|
return array('abstractSchemaName' => $abstractSchemaName,
|
|
|
|
'identifier' => $identifier);
|
2007-12-10 23:02:41 +03:00
|
|
|
}
|
|
|
|
}
|