Автор: André Rothe (andre.rothe@phosco.info)
Наследование: extends AbstractProcessor
 protected function processExpressionList($unparsed)
 {
     $processor = new ExpressionListProcessor();
     $expr = $this->removeParenthesisFromStart($unparsed);
     $expr = $this->splitSQLIntoTokens($expr);
     return $processor->process($expr);
 }
Пример #2
0
 public function process($tokens, $select = array())
 {
     $parsed = parent::process($tokens);
     foreach ($parsed as $k => $v) {
         if ($v['expr_type'] === ExpressionType::COLREF) {
             foreach ($select as $clause) {
                 if (!$clause['alias']) {
                     continue;
                 }
                 if ($clause['alias']['no_quotes'] === $v['no_quotes']) {
                     $parsed[$k]['expr_type'] = ExpressionType::ALIAS;
                     break;
                 }
             }
         }
     }
     return $parsed;
 }
 protected function processExpressionList($unparsed)
 {
     $processor = new ExpressionListProcessor();
     return $processor->process($unparsed);
 }
Пример #4
0
 protected function processExpressionList($tokens)
 {
     $processor = new ExpressionListProcessor();
     return $processor->process($tokens);
 }
 protected function processExpressionList($parsed)
 {
     $processor = new ExpressionListProcessor($this->options);
     return $processor->process($parsed);
 }