public function getOptions($hasDevTestRole = false) { $dao = new \DDD\Dao\ApartmentGroup\ApartmentGroup($this->getServiceLocator(), 'DDD\\Domain\\ApartmentGroup\\ForSelect'); $groups = $dao->getAllGroups($hasDevTestRole); $params['groups'] = $groups; return $params; }
/** * Prepare resources needed for booking search form * * @return array */ public function prepareSearchFormResources() { /** * @var Partners $partnerDao */ $apartmentGroupsDao = new \DDD\Dao\ApartmentGroup\ApartmentGroup($this->getServiceLocator(), 'DDD\\Domain\\ApartmentGroup\\ForSelect'); $partnerDao = $this->getServiceLocator()->get('dao_partners_partners'); $partners = $partnerDao->getPartnersForSelect(); $groups = $apartmentGroupsDao->getAllGroups(); $apartels = $apartmentGroupsDao->getApartelList(); return array('partners' => $partners, 'groups' => $groups, 'apartels' => $apartels); }