/**
  * Execute command.
  */
 function &executeCommand()
 {
     global $ilCtrl;
     $next_class = $ilCtrl->getNextClass($this);
     $cmd = $ilCtrl->getCmd();
     switch ($next_class) {
         case 'ilformpropertydispatchgui':
             $ilCtrl->saveParameter($this, 'postvar');
             include_once './Services/Form/classes/class.ilFormPropertyDispatchGUI.php';
             $form_prop_dispatch = new ilFormPropertyDispatchGUI();
             $item = $this->getItemByPostVar($_REQUEST["postvar"]);
             $form_prop_dispatch->setItem($item);
             return $ilCtrl->forwardCommand($form_prop_dispatch);
             break;
     }
     return false;
 }
Пример #2
0
 function &executeCommand()
 {
     global $rbacsystem;
     $next_class = $this->ctrl->getNextClass($this);
     $cmd = $this->ctrl->getCmd();
     switch ($next_class) {
         case 'ilformpropertydispatchgui':
             // see ilTaxMDGUI / ilTaxSelectInputGUI
             include_once './Services/Form/classes/class.ilFormPropertyDispatchGUI.php';
             $form_prop_dispatch = new ilFormPropertyDispatchGUI();
             $this->initFilter();
             $item = $this->getFilterItemByPostVar($_GET["postvar"]);
             $form_prop_dispatch->setItem($item);
             return $this->ctrl->forwardCommand($form_prop_dispatch);
         default:
             if (!$cmd) {
                 $cmd = "listSection";
             }
             $this->{$cmd}();
             break;
     }
     return true;
 }