Login +

Documentation

SLS_QueryBuilder::order

Since SillySmart 1.0.7

Description

Specifies order
public SLS_QueryBuilder order ( mixed $columns, [ mixed $order ] );

Parameters

  • mixed $columns
    the columns to order.
  • mixed $order
    the order of columns
     // Can be called with multiple type of parameters and with/without alias
     $qbd->select()
         ->from("news","n")
         ->order('news_title')
     // Or
     $qbd->select()
         ->from("news","n")
         ->order('news_title','news_id')
     // Or
     $qbd->select()
         ->from("news","n")
         ->order(array('news.news_title','news_id'),array('asc','desc'))
     

Return

SLS_QueryBuilder $this
current queryBuilder instance.
No exemples.

Comments

No comment on this function, be the first !

Add your comment

You must login/register to post a reply.