◆ __construct()
◆ addHandler()
◆ executeCommand()
ilNotificationGUI::executeCommand |
( |
| ) |
|
Definition at line 74 of file class.ilNotificationGUI.php.
76 if (!$this->controller->getCmd()) {
80 $cmd = $this->controller->getCmd() .
'Object';
◆ getAvailableChannels()
ilNotificationGUI::getAvailableChannels |
( |
array |
$types = [] | ) |
|
|
private |
◆ getAvailableTypes()
ilNotificationGUI::getAvailableTypes |
( |
array |
$types = [] | ) |
|
|
private |
◆ getHandler()
ilNotificationGUI::getHandler |
( |
string |
$type | ) |
|
- Returns
- list<ilNotificationHandler>|null
Definition at line 87 of file class.ilNotificationGUI.php.
References null.
89 return $this->handler[$type] ??
null;
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ getOSDNotificationsObject()
ilNotificationGUI::getOSDNotificationsObject |
( |
| ) |
|
Definition at line 110 of file class.ilNotificationGUI.php.
References $renderer, and ilSession\enableWebAccessWithoutSession().
115 foreach ($this->dic->globalScreen()->collector()->toasts()->getToasts() as $toast) {
117 $toasts[] =
$renderer->getToastComponentForItem($toast);
120 $this->dic->http()->saveResponse(
121 $this->dic->http()->response()
122 ->withBody(Streams::ofString(
123 $this->dic->ui()->renderer()->renderAsync($toasts)
126 $this->dic->http()->sendResponse();
127 $this->dic->http()->close();
static enableWebAccessWithoutSession(bool $enable_web_access_without_session)
◆ showSettingsObject()
ilNotificationGUI::showSettingsObject |
( |
| ) |
|
Definition at line 139 of file class.ilNotificationGUI.php.
References getAvailableChannels(), getAvailableTypes(), ILIAS\UI\examples\Symbol\Glyph\Language\language(), and ILIAS\Repository\user().
141 $userTypes = ilNotificationDatabaseHandler::loadUserConfig($this->
user->getId());
143 $this->
language->loadLanguageModule(
'notification');
146 $chk =
new ilCheckboxInputGUI($this->
language->txt(
'enable_custom_notification_configuration'),
'enable_custom_notification_configuration');
148 $chk->setChecked($this->dic->refinery()->kindlyTo()->int()->transform($this->
user->getPref(
'use_custom_notification_setting')) === 1);
149 $form->addItem($chk);
151 $form->setFormAction($this->controller->getFormAction($this,
'showSettingsObject'));
152 $form->addCommandButton(
'saveCustomizingOption', $this->
language->txt(
'save'));
153 $form->addCommandButton(
'showSettings', $this->
language->txt(
'cancel'));
157 $table->setFormAction($this->controller->getFormAction($this,
'saveSettings'));
161 $this->dic->refinery()->kindlyTo()->int()->transform(
162 $this->
user->getPref(
'use_custom_notification_setting')
165 $table->addCommandButton(
'saveSettings', $this->
language->txt(
'save'));
166 $table->addCommandButton(
'showSettings', $this->
language->txt(
'cancel'));
167 $table->setEditable(
true);
169 $table->setEditable(
false);
172 $this->
template->setContent($form->getHtml() . $table->getHTML());
getAvailableChannels(array $types=[])
getAvailableTypes(array $types=[])
language()
description: > Example for rendring a language glyph.
◆ $controller
◆ $dic
◆ $handler
array ilNotificationGUI::$handler = [] |
|
private |
◆ $language
◆ $template
◆ $user
The documentation for this class was generated from the following file: