コード例 #1
0
ファイル: GroupInventory.php プロジェクト: arbi/MyCode
 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;
 }
コード例 #2
0
ファイル: BookingManagement.php プロジェクト: arbi/MyCode
 /**
  * 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);
 }