19 declare(strict_types=1);
    51         if ($identification === null) {
    54         $this->identification = $identification;
    64         $this->disableAfterDelivery = $value;
    90         $this->iconPath = 
$path;
   101     public function setTitleVar(
string $name, array $parameters = [], 
string $language_module = 
'notification'): void
   108         return $this->title->getName();
   116         array $parameters = [],
   117         string $language_module = 
'notification'   124         return $this->short_description->getName();
   132         array $parameters = [],
   133         string $language_module = 
'notification'   140         return $this->long_description->getName();
   154         foreach ($this->links as 
$id => $link) {
   155             $params[
'link_' . 
$id] = $link->getTitleParameter();
   163         $this->validForSeconds = $seconds;
   203     final public function notifyByUsers(array $recipients, 
bool $processAsync = 
false): void
   220     final public function notifyByRoles(array $roles, 
bool $processAsync = 
false): void
   232         $title = $this->title->
getName();
   233         if (isset($languageVars[$this->title->getName()])) {
   234             $var = $languageVars[$this->title->getName()]->lang;
   237             } elseif (isset($var[$defaultLanguage])) {
   241         $notificationObject->title = 
$title;
   243         $short = $this->short_description->
getName();
   244         if (isset($languageVars[$this->short_description->getName()])) {
   245             $var = $languageVars[$this->short_description->getName()]->lang;
   248             } elseif (isset($var[$defaultLanguage])) {
   252         $notificationObject->shortDescription = $short;
   254         $long = $this->long_description->getName();
   255         if (isset($languageVars[$this->long_description->getName()])) {
   256             $var = $languageVars[$this->long_description->getName()]->lang;
   259             } elseif (isset($var[$defaultLanguage])) {
   263         $notificationObject->longDescription = $long;
   266         foreach ($this->links as $link) {
   267             $link_title = $link->getTitleParameter()->getName();
   268             if (isset($languageVars[$link->getTitleParameter()->getName()])) {
   269                 $var = $languageVars[$link->getTitleParameter()->getName()]->lang;
   272                 } elseif (isset($var[$defaultLanguage])) {
   277             $process_link = clone $link;
   278             $process_link->setTitle($link_title);
   279             $process_links[] = $process_link;
   281         $notificationObject->links = $process_links;
   285         return $notificationObject;
   290         if (strpos($name, 
'.')) {
   291             $nsParts = explode(
'.', $name, 2);
   293             $field = $nsParts[1];
   294             $this->handlerParams[$ns][$field] = $value;
   296             $this->handlerParams[
''][$name] = $value;
   310         unset($this->handlerParams[$name]);
   315         $this->identification = $identification;
   320         return $this->identification;
 
hasDisableAfterDeliverySet()
 
setVisibleForSeconds(int $visibleForSeconds)
 
notifyByUsers(array $recipients, bool $processAsync=false)
 
static sendNotificationToRoles(ilNotificationConfig $notification, array $roles, bool $processAsync=false)
 
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
 
description of a localized parameter this information is used locate translations while processing no...
 
notifyByListeners(int $ref_id, bool $processAsync=false)
 
setAutoDisable(bool $value)
 
unsetHandlerParam(string $name)
 
setHandlerParam(string $name, string $value)
 
static sendNotificationToUsers(ilNotificationConfig $notification, array $users, bool $processAsync=false)
 
setShortDescriptionVar(string $name, array $parameters=[], string $language_module='notification')
 
setTitleVar(string $name, array $parameters=[], string $language_module='notification')
 
setValidForSeconds(int $seconds)
 
static sendNotificationToListeners(ilNotificationConfig $notification, int $ref_id, bool $processAsync=false)
 
setIconPath(string $path)
 
setLongDescriptionVar(string $name, array $parameters=[], string $language_module='notification')
 
ilNotificationParameter $title
 
ilNotificationParameter $short_description
 
getUserInstance(ilObjUser $user, array $languageVars, string $defaultLanguage)
 
setIdentification(NotificationIdentification $identification)
 
__construct(private readonly string $provider, private ?NotificationIdentification $identification=null)
 
bool $disableAfterDelivery
 
ilNotificationParameter $long_description
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins 
 
notifyByRoles(array $roles, bool $processAsync=false)