ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilUIPluginRouterGUI.php
Go to the documentation of this file.
1<?php
2require_once('./Services/UIComponent/classes/class.ilUIHookProcessor.php');
3
13{
14
18 protected $ctrl;
19
20
21 public function __construct()
22 {
23 global $DIC;
24 $this->ctrl = $DIC->ctrl();
25 }
26
27
31 public function executeCommand()
32 {
33 $next_class = $this->ctrl->getNextClass($this);
34 switch ($next_class) {
35 default:
36 $class_file = $this->ctrl->lookupClassPath($next_class);
37 if (is_file($class_file)) {
38 include_once($class_file);
39 $gui = new $next_class();
40 $this->ctrl->forwardCommand($gui);
41 } else {
42 ilUtil::sendFailure('Plugin GUI-Class not found! (' . $next_class . ')');
43 }
44 break;
45 }
46 }
47}
An exception for terminatinating execution or to throw for unit testing.
Class ilUIPluginRouterGUI.
executeCommand()
The only thing this execute Command does is forward the command in the command chain.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
global $DIC
Definition: goto.php:24