public function getTemplateParameters() { $clubId = $this->_websoccer->getUser()->getClubId($this->_websoccer, $this->_db); $offers = array(); $count = DirectTransfersDataService::countReceivedOffers($this->_websoccer, $this->_db, $clubId); $eps = $this->_websoccer->getConfig("entries_per_page"); $paginator = new Paginator($count, $eps, $this->_websoccer); if ($count > 0) { $offers = DirectTransfersDataService::getReceivedOffers($this->_websoccer, $this->_db, $paginator->getFirstIndex(), $eps, $clubId); } else { $offers = array(); } return array("offers" => $offers, "paginator" => $paginator); }