ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 }
Service ilRouterGUI This service is used by plugins.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
executeCommand()
The only thing this execute Command does is forward the command in the command chain.