public function getRooms(\DataContainer $objDc)
 {
     $arrRooms = array();
     if (($objRoomArchives = \HeimrichHannot\CalendarPlus\CalendarRoomArchiveModel::findByPid($objDc->activeRecord->pid)) !== null) {
         foreach ($objRoomArchives as $objRoomArchive) {
             if (($objRooms = \HeimrichHannot\CalendarPlus\CalendarRoomModel::findByPid($objRoomArchive->id)) !== null) {
                 foreach ($objRooms as $objRoom) {
                     $arrRooms[$objRoomArchive->title][$objRoom->id] = $objRoom->title;
                 }
             }
         }
     }
     return $arrRooms;
 }
 /**
  * Get all available rooms for this calendar
  */
 public function getAvailableRooms(\DataContainer $dc)
 {
     $arrOptions = array();
     if (($objRooms = \HeimrichHannot\CalendarPlus\CalendarRoomModel::findAllByCalendar($dc->activeRecord->pid)) === null) {
         return $arrOptions;
     }
     while ($objRooms->next()) {
         $objRoomArchive = $objRooms->getRelated('pid');
         if ($objRoomArchive === null) {
             continue;
         }
         $arrOptions[$objRoomArchive->title][$objRooms->id] = $objRooms->title;
     }
     return $arrOptions;
 }