ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilUIPluginRouterGUI.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/UIComponent/classes/class.ilUIHookProcessor.php');
3 
15 
17  protected $ilCtrl;
18 
19  function __construct() {
20  global $ilCtrl;
21 
22  $this->ctrl = $ilCtrl;
23  }
24 
28  function executeCommand() {
29  $next_class = $this->ctrl->getNextClass($this);
30  switch ($next_class) {
31  default:
32  $class_file = $this->ctrl->lookupClassPath($next_class);
33  if (is_file($class_file)) {
34  include_once($class_file);
35  $gui = new $next_class();
36  $this->ctrl->forwardCommand($gui);
37  } else {
38  ilUtil::sendFailure('Plugin GUI-Class not found! ('.$next_class.')');
39  }
40  break;
41  }
42  }
43 }