/** * execute command */ public function &executeCommand() { global $ilCtrl; // determine next class in the call structure $next_class = $this->ilCtrl->getNextClass($this); switch ($next_class) { case 'ilrepositorysearchgui': include_once './Services/Search/classes/class.ilRepositorySearchGUI.php'; $rep_search =& new ilRepositorySearchGUI(); $this->ilCtrl->setReturn($this, 'perminfo'); $this->ilCtrl->forwardCommand($rep_search); break; default: $cmd = $this->ilCtrl->getCmd(); $this->{$cmd}(); break; } }
/** * */ public function executeCommand() { $next_class = $this->ctrl->getNextClass($this); $cmd = $this->ctrl->getCmd(); switch ($next_class) { case 'ilrepositorysearchgui': include_once 'Services/Search/classes/class.ilRepositorySearchGUI.php'; $rep_search = new ilRepositorySearchGUI(); $rep_search->setCallback($this, 'addModerator'); $this->ctrl->setReturn($this, 'showModerators'); $this->ctrl->forwardCommand($rep_search); break; default: if (!$cmd) { $cmd = 'showModerators'; } $this->{$cmd}(); break; } }