public function processRows() { if (empty($this->total_rows)) { $this->loadTotalRows(); } if (!empty($this->search_phrase)) { $this->loadSearchConditionals(); if ($this->current_page > $this->getNumberofPages()) { $this->current_page = 1; } } if (!empty($this->sort_column) && $this->sort_direction != 0) { $this->setRowOrder(); } $this->processLimit(); if ($this->show_query) { $this->addJsonData('select_query', $this->db->selectQuery()); } $this->setRows($this->db->select()); $this->executeCallback(); }