Exemplo n.º 1
0
 /**
  * Appends the list of expressions that will be used when sorting the resulting rows.
  *
  * Multiple arguments implementing OrderBy are accepted.
  *
  * @param OrderBy ...
  * @return SelectQuery itself
  */
 function orderBy(OrderBy $expression)
 {
     $expressions = func_get_args();
     foreach ($expressions as $expression) {
         $this->order->append($expression);
     }
     return $this;
 }
Exemplo n.º 2
0
 /**
  * Appends the expression that will be used when sorting the resulting rows.
  *
  * @param OrderBy
  * @return SelectQuery itself
  */
 function addOrderBy(OrderBy $expression)
 {
     $this->order->append($expression);
     return $this;
 }