45 private \ILIAS\HTTP\Services
$http;
46 private \ilGlobalTemplateInterface
$tpl;
54 $this->
lng = $DIC->language();
55 $this->
lng->loadLanguageModule(
"orgu");
56 $this->
ctrl = $DIC->ctrl();
57 $this->tabsGUI = $DIC->tabs();
58 $this->
access = $DIC->access();
59 $this->
http = $DIC->http();
60 $this->tpl = $DIC->ui()->mainTemplate();
73 abstract protected function index(): void;
90 $this->
ctrl->redirect($this, self::CMD_INDEX);
95 $this->tpl->setContent($html);
104 $this->
ctrl = $DIC->ctrl();
105 $this->
http = $DIC->http();
106 $this->
access = $DIC->access();
107 $this->tabsGUI = $DIC->tabs();
108 $this->
lng = $DIC->language();
109 $this->tpl = $DIC->ui()->mainTemplate();
110 $this->
lng->loadLanguageModule(
"orgu");
112 $cmd = $this->
ctrl->getCmd(self::CMD_INDEX);
113 $next_class = $this->
ctrl->getNextClass();
116 if (strtolower($class) === $next_class) {
117 $instance =
new $class();
119 $instance->setParentGui($this);
120 $this->
ctrl->forwardCommand($instance);
134 if ($this->checkRequestReferenceId()) {
143 $this->tabsGUI->addSubTab($subtab_id, $this->
lng->txt($subtab_id),
$url);
148 $this->tabsGUI->activateSubTab($subtab_id);
151 protected function checkRequestReferenceId()
166 $ref_id = $this->
http->request()->getQueryParams()[
"ref_id"];
activeSubTab(string $subtab_id)
ILIAS HTTP Services $http
pushSubTab(string $subtab_id, string $url)
static http()
Fetches the global http state from ILIAS.
ilGlobalTemplateInterface $tpl
setParentGui(BaseCommands $parent_gui)
const CMD_DELETE_RECURSIVE
const CMD_CONFIRM_RECURSIVE
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...