ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
CallbackHandler.php
Go to the documentation of this file.
1 <?php namespace ILIAS\GlobalScreen\Client;
2 
6 
8 {
9  use Hasher;
10 
11  public function run()
12  {
14  global $DIC;
15  $DIC->ctrl()->setTargetScript("/ilias.php");
16  $GS = $DIC->globalScreen();
17  $GS->collector()->tool()->collectOnce();
18  $unhash = $this->unhash($_GET['item']);
19  $identification = $GS->identification()->fromSerializedIdentification($unhash);
20  $item = $GS->collector()->tool()->getSingleItem($identification);
24  $callback = $item->hasCloseCallback() ? $item->getCloseCallback() : static function () {
25  };
26  $callback();
27  }
28 }
$_GET["client_id"]
Entry Point for Async calls from the Notification Center.
Definition: gs_content.php:1
static initILIAS()
ilias initialisation
$DIC
Definition: xapitoken.php:46