/** * Get a paged list of entities of a particular type * * @param int $pageNumber The page number for pagination * @param int $pageSize The page size for pagination * @param array $orderBy The order by clause * * @return array An array of BaseEntityAbstract */ public function findAll($searchActiveOnly = true, $pageNumber = null, $pageSize = DaoQuery::DEFAUTL_PAGE_SIZE, $orderBy = array()) { $results = Dao::findAll($this->_query->setSelectActiveOnly($searchActiveOnly), $pageNumber, $pageSize, $orderBy); $this->_pageStats = Dao::getPageStats(); $this->resetQuery(); return $results; }