示例#1
0
 /**
  * Creates a new PaginInfo object which sorts by the given column.
  * Records per page is set to a large-enough number.
  * This method can be used when you need a certain finder method to sort
  * by a specific field.
  *
  * @param String $orderByColumn
  * @param Boolean $orderByAscending
  * @return PagingInfo
  */
 public static function newSorter($orderByColumn, $orderByAscending = true)
 {
     $pagingInfo = new PagingInfo();
     $pagingInfo->limit(1000);
     $pagingInfo->setOrderByColumn($orderByColumn);
     $pagingInfo->setOrderByAscending($orderByAscending);
     return $pagingInfo;
 }