public function paging($rowsPerPage, $currentPage = NULL, $result = NULL) { $totalRows = $this->countRowsFromResult($result); PHPToolkit::getClass('paging'); $paging = new paging($rowsPerPage, $totalRows, $currentPage, $this->getFilter(true)); $this->limit = $paging->limit(); return $paging; }