/** * Pages quantity calculation */ public function calcMaxPages() { $this->page_nums = (int) ceil(Db::getFoundRows() / $this->getLimit()); }