ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct () | |
run () | |
Data Fields | |
const | ADDITIONAL_ACTION = 'additional_action' |
const | MODE = "mode" |
Name of the GET param used in the async calls. More... | |
const | MODE_OPENED = "opened" |
Value of the MODE GET param, if the Notification Center has been opened. More... | |
const | MODE_CLOSED = "closed" |
Value of the MODE GET param, if the Notification Center has been closed. More... | |
const | MODE_HANDLE_TOAST_ACTION = "toast_action" |
Value of the MODE GET param, if a ToastLik has been klicked. More... | |
const | MODE_RERENDER = "rerender" |
Value of the MODE GET param, if the Notification Center should be rerendered. More... | |
const | ITEM_ID = "item_id" |
NAME of the GET param, to indicate the item ID of the closed item. More... | |
const | NOTIFICATION_IDENTIFIERS = "notification_identifiers" |
Used to read the identifiers out of the GET param later. More... | |
const | NOTIFY_ENDPOINT = "src/GlobalScreen/Client/notify.php" |
Location of the endpoint handling async notification requests. More... | |
Protected Attributes | |
Container | $dic |
array | $notification_groups |
Collected set of collected notifications. More... | |
array | $identifiers_to_handle = [] |
string | $single_identifier_to_handle = null |
array | $administrative_notifications = [] |
Private Member Functions | |
handleToastAction () | |
handleOpened () | |
Loops through all available open callable provided by the notification providers. More... | |
handleClosed () | |
Runs the closed callable if such a callable is provided. More... | |
handleRerender () | |
Private Attributes | |
string | $additional_action = null |
array | $toasts = [] |
Definition at line 35 of file Notifications.php.
ILIAS\GlobalScreen\Client\Notifications::__construct | ( | ) |
Definition at line 89 of file Notifications.php.
References $DIC.
|
private |
Runs the closed callable if such a callable is provided.
Definition at line 182 of file Notifications.php.
Referenced by ILIAS\GlobalScreen\Client\Notifications\run().
|
private |
Loops through all available open callable provided by the notification providers.
Definition at line 157 of file Notifications.php.
Referenced by ILIAS\GlobalScreen\Client\Notifications\run().
|
private |
ResponseSendingException | |
JsonException |
Definition at line 214 of file Notifications.php.
References ILIAS\HTTP\Response\ResponseHeader\CONTENT_TYPE, and ILIAS\Filesystem\Stream\Streams\ofString().
Referenced by ILIAS\GlobalScreen\Client\Notifications\run().
|
private |
Definition at line 138 of file Notifications.php.
References ILIAS\GlobalScreen\Client\Notifications\$additional_action.
Referenced by ILIAS\GlobalScreen\Client\Notifications\run().
ILIAS\GlobalScreen\Client\Notifications::run | ( | ) |
$DI
Definition at line 95 of file Notifications.php.
References $DIC, $query, ILIAS\GlobalScreen\Client\Notifications\handleClosed(), ILIAS\GlobalScreen\Client\Notifications\handleOpened(), ILIAS\GlobalScreen\Client\Notifications\handleRerender(), and ILIAS\GlobalScreen\Client\Notifications\handleToastAction().
|
private |
Definition at line 43 of file Notifications.php.
Referenced by ILIAS\GlobalScreen\Client\Notifications\handleToastAction().
|
protected |
Definition at line 83 of file Notifications.php.
|
protected |
Definition at line 44 of file Notifications.php.
|
protected |
Definition at line 81 of file Notifications.php.
|
protected |
Collected set of collected notifications.
Definition at line 48 of file Notifications.php.
|
protected |
Definition at line 82 of file Notifications.php.
|
private |
Definition at line 87 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::ADDITIONAL_ACTION = 'additional_action' |
Definition at line 39 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::ITEM_ID = "item_id" |
NAME of the GET param, to indicate the item ID of the closed item.
Definition at line 72 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::MODE = "mode" |
Name of the GET param used in the async calls.
Definition at line 52 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::MODE_CLOSED = "closed" |
Value of the MODE GET param, if the Notification Center has been closed.
Definition at line 60 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::MODE_HANDLE_TOAST_ACTION = "toast_action" |
Value of the MODE GET param, if a ToastLik has been klicked.
Definition at line 64 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::MODE_OPENED = "opened" |
Value of the MODE GET param, if the Notification Center has been opened.
Definition at line 56 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::MODE_RERENDER = "rerender" |
Value of the MODE GET param, if the Notification Center should be rerendered.
Definition at line 68 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::NOTIFICATION_IDENTIFIERS = "notification_identifiers" |
Used to read the identifiers out of the GET param later.
Definition at line 76 of file Notifications.php.
const ILIAS\GlobalScreen\Client\Notifications::NOTIFY_ENDPOINT = "src/GlobalScreen/Client/notify.php" |
Location of the endpoint handling async notification requests.
Definition at line 80 of file Notifications.php.