コード例 #1
0
 /**
  * @return OqlOrderByClause
  **/
 public static function orderBy($clause)
 {
     return OqlOrderByParser::create()->parse($clause);
 }
コード例 #2
0
 private function orderByState()
 {
     if ($this->checkKeyword($this->tokenizer->peek(), 'order by')) {
         $this->tokenizer->next();
         $this->oqlObject->addOrderBy(OqlOrderByParser::create()->setTokenizer($this->tokenizer)->parse());
     }
     return self::HAVING_STATE;
 }