Example #1
0
 /**
  * Add a limit / offset to a server-side processing query
  *  @param Query $query Query instance to apply the offset / limit to
  *  @param array $http HTTP variables (i.e. GET or POST)
  *  @private
  */
 private function _ssp_limit($query, $http)
 {
     if ($http['start'] != -1) {
         // -1 is 'show all' in DataTables
         $query->offset($http['start'])->limit($http['length']);
     }
 }