27 switch ($this->ctrl()->getCmdClass()) {
36 $cmd = $this->ctrl()->getCmd();
38 case self::CMD_USER_INTERACTION:
39 case self::CMD_GET_POPOVER_CONTENT:
41 case self::CMD_REMOVE:
49 $observer_id = (int) $this->
http()->request()->getQueryParams()[self::OBSERVER_ID];
50 $selected_option = $this->
http()->request()->getQueryParams()[self::SELECTED_OPTION];
53 $observer = $this->dic()->backgroundTasks()->persistence()->loadBucket($observer_id);
55 $this->dic()->backgroundTasks()->taskManager()->continueTask($observer, $option);
56 $this->ctrl()->redirectToURL($from_url);
62 $observer_id = (int) $this->
http()->request()->getQueryParams()[self::OBSERVER_ID];
65 $bucket = $this->dic()->backgroundTasks()->persistence()->loadBucket($observer_id);
67 $this->dic()->backgroundTasks()->taskManager()->quitBucket($bucket);
69 $this->ctrl()->redirectToURL($from_url);
73 protected function getPopoverContent()
76 $gui = $this->dic()->backgroundTasks()->injector()->createInstance(ilBTPopOverGUI::class);
77 $signal_id = $this->
http()->request()->getQueryParams()[self::REPLACE_SIGNAL];
80 ->setParameterByClass(ilBTControllerGUI::class, self::REPLACE_SIGNAL, $signal_id);
82 $replace_url = $this->ctrl()
83 ->getLinkTargetByClass([ ilBTControllerGUI::class ], self::CMD_GET_POPOVER_CONTENT,
"",
true);
85 echo $this->ui()->renderer()->renderAsync($gui->getPopOverContent($this->user()
86 ->getId(), $this->
getFromURL(), $replace_url));
95 $from_url = self::unhash($this->
http()->request()->getQueryParams()[self::FROM_URL]);
108 return base64_encode(
$url);
119 return base64_decode(
$url);
const CMD_GET_POPOVER_CONTENT
static http()
Fetches the global http state from ILIAS.
const CMD_USER_INTERACTION