ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilUIPluginRouterGUI.php
Go to the documentation of this file.
1 <?php
2 require_once('./Services/UIComponent/classes/class.ilUIHookProcessor.php');
3 
15 {
19  protected $ctrl;
20 
21 
23  protected $ilCtrl;
24 
25  public function __construct()
26  {
27  global $DIC;
28 
29  $ilCtrl = $DIC->ctrl();
30 
31  $this->ctrl = $ilCtrl;
32  }
33 
37  public function executeCommand()
38  {
39  $next_class = $this->ctrl->getNextClass($this);
40  switch ($next_class) {
41  default:
42  $class_file = $this->ctrl->lookupClassPath($next_class);
43  if (is_file($class_file)) {
44  include_once($class_file);
45  $gui = new $next_class();
46  $this->ctrl->forwardCommand($gui);
47  } else {
48  ilUtil::sendFailure('Plugin GUI-Class not found! (' . $next_class . ')');
49  }
50  break;
51  }
52  }
53 }
global $DIC
Definition: saml.php:7
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.