4use ILIAS\Modules\OrgUnit\ARHelper\DIC;
29 switch ($this->ctrl()->getCmdClass()) {
38 $cmd = $this->ctrl()->getCmd();
41 $this->getPopoverContent();
62 $observer = $this->dic()->backgroundTasks()->persistence()->loadBucket($observer_id);
63 }
catch (Throwable
$t) {
64 $this->ctrl()->redirectToURL($from_url);
67 $this->dic()->backgroundTasks()->taskManager()->continueTask($observer, $option);
68 if ($this->
http()->request()->getQueryParams()[self::IS_ASYNC] ===
"true") {
71 $this->ctrl()->redirectToURL($from_url);
80 $bucket = $this->dic()->backgroundTasks()->persistence()->loadBucket($observer_id);
82 $this->dic()->backgroundTasks()->taskManager()->quitBucket($bucket);
83 if ($this->
http()->request()->getQueryParams()[self::IS_ASYNC] ===
"true") {
86 $this->ctrl()->redirectToURL($from_url);
90 protected function getPopoverContent()
93 $gui = $this->dic()->backgroundTasks()->injector()->createInstance(ilBTPopOverGUI::class);
97 ->setParameterByClass(ilBTControllerGUI::class, self::REPLACE_SIGNAL, $signal_id);
99 $replace_url = $this->ctrl()
100 ->getLinkTargetByClass([ ilBTControllerGUI::class ], self::CMD_GET_POPOVER_CONTENT,
"",
true);
102 echo $this->ui()->renderer()->renderAsync($gui->getPopOverContent($this->user()
103 ->getId(), $this->getFromURL(), $replace_url));
113 $from_url =
self::unhash($this->
http()->request()->getQueryParams()[self::FROM_URL]);
126 return base64_encode(
$url);
137 return base64_decode(
$url);
An exception for terminatinating execution or to throw for unit testing.
const CMD_USER_INTERACTION
const CMD_GET_REPLACEMENT_ITEM
const CMD_GET_POPOVER_CONTENT
static http()
Fetches the global http state from ILIAS.