예제 #1
0
 public function execute($dataContainer)
 {
     parent::entryPoint($dataContainer);
     if (isset($_GET['action'])) {
         switch ($_GET['action']) {
             case 2:
                 if (isset($_GET['id'])) {
                     $this->deleteMeetingTime($_GET['id']);
                 }
                 return;
             case 3:
                 if (isset($_POST['category']) && isset($_POST['start']) && isset($_POST['length'])) {
                     $this->addMeetingTime($_POST['category'], $_POST['start'], $_POST['length']);
                 }
                 break;
             case 4:
                 if (isset($_POST['id']) && isset($_POST['start']) && isset($_POST['length'])) {
                     $this->editMeetingTime($_POST['id'], $_POST['start'], $_POST['length']);
                 }
                 break;
         }
     }
     if (isset($_POST['category'])) {
         $this->showTimes($_POST['category']);
     } else {
         $this->showTimes();
     }
 }
예제 #2
0
 public function execute($dataContainer)
 {
     parent::entryPoint($dataContainer);
     if (isset($_GET['action'])) {
         $this->checkRooms();
     } else {
         $this->generate();
     }
 }
예제 #3
0
 public function execute($dataContainer)
 {
     parent::entryPoint($dataContainer);
     if (isset($_POST['areSelectionsEnabled']) && !isBlank($_POST['areSelectionsEnabled'])) {
         $areSelEnabled = $_POST['areSelectionsEnabled'] == 'true';
         $this->setSelectionsEnabled($areSelEnabled);
     } else {
         http_response_code(400);
         $this->_logger->log('Correct data not send by client.', 'Notice', Null, json_encode(array('postData' => $_POST)));
     }
 }
예제 #4
0
 public function execute($dataContainer)
 {
     parent::entryPoint($dataContainer);
     if (isset($_GET['action'])) {
         switch ($_GET['action']) {
             case 2:
                 if (isset($_GET['id'])) {
                     $this->deleteCategory($_GET['id']);
                 }
                 break;
             case 3:
                 if (isset($_POST['name'])) {
                     $this->addCategory($_POST['name']);
                 }
                 break;
             case 4:
                 if (isset($_POST['name']) && isset($_POST['id'])) {
                     $this->editCategory($_POST['id'], $_POST['name']);
                 }
                 break;
         }
     }
     $this->showCategories();
 }
예제 #5
0
 public function execute($dataContainer)
 {
     parent::entryPoint($dataContainer);
     $this->generate();
 }
예제 #6
0
 public function execute($dataContainer)
 {
     parent::entryPoint($dataContainer);
     $this->displayTpl('menu.tpl');
 }