저자: 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);
 }