27 $cmd = $this->ctrl()->getCmd();
29 case self::CMD_GET_REPLACEMENT_ITEM:
32 case self::CMD_USER_INTERACTION:
36 case self::CMD_REMOVE:
47 $observer_id = (int) $this->
http()->request()->getQueryParams()[self::OBSERVER_ID];
48 $selected_option = $this->
http()->request()->getQueryParams()[self::SELECTED_OPTION];
51 $observer = $this->dic()->backgroundTasks()->persistence()->loadBucket($observer_id);
53 $this->dic()->backgroundTasks()->taskManager()->continueTask($observer, $option);
54 if ($this->
http()->request()->getQueryParams()[self::IS_ASYNC] ===
"true") {
57 $this->ctrl()->redirectToURL($from_url);
63 $observer_id = (int) $this->
http()->request()->getQueryParams()[self::OBSERVER_ID];
66 $bucket = $this->dic()->backgroundTasks()->persistence()->loadBucket($observer_id);
68 $this->dic()->backgroundTasks()->taskManager()->quitBucket($bucket);
69 if ($this->
http()->request()->getQueryParams()[self::IS_ASYNC] ===
"true") {
72 $this->ctrl()->redirectToURL($from_url);
82 $observer_id = (int) $this->
http()->request()->getQueryParams()[self::OBSERVER_ID];
83 $bucket = $this->dic()->backgroundTasks()->persistence()->loadBucket($observer_id);
86 $this->dic()->language()->loadLanguageModule(
'background_tasks');
87 $item = $item_source->getItemForObserver($bucket);
88 echo $this->dic()->ui()->renderer()->renderAsync($item);
98 $from_url = self::unhash($this->
http()->request()->getQueryParams()[self::FROM_URL]);
111 return base64_encode(
$url);
122 return base64_decode(
$url);
getAsyncReplacementItem()
Loads one single aggregate notification item representing a button async to replace an existing one...
static http()
Fetches the global http state from ILIAS.
const CMD_GET_REPLACEMENT_ITEM
const CMD_USER_INTERACTION