예제 #1
0
 /**
  * Ini form for room size
  * @param ilPropertyFormGUI $form
  * @return bool
  */
 protected function initFormRoomSize(ilPropertyFormGUI $form, $a_create = true)
 {
     $room_size_list = ilViteroUtils::getRoomSizeList();
     if (!count($room_size_list)) {
         return false;
     }
     $room_size = new ilSelectInputGUI(ilViteroPlugin::getInstance()->txt('room_size'), 'room_size');
     $room_size->setOptions($room_size_list);
     if (!$a_create) {
         $room_size->setDisabled(true);
     }
     $form->addItem($room_size);
     return true;
 }