ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Describes a notification and provides methods for publishing this notification. More...
Public Member Functions | |
__construct ($type) | |
getType () | |
setAutoDisable ($value) | |
hasDisableAfterDeliverySet () | |
setLink ($link) | |
getLink () | |
setIconPath ($path) | |
getIconPath () | |
setTitleVar ($name, $parameters=array(), $language_module='notification') | |
Sets the name of the language variable to use as title. More... | |
getTitleVar () | |
setShortDescriptionVar ($name, $parameters=array(), $language_module='notification') | |
Sets the name of the language variable to use as short description text. More... | |
getShortDescriptionVar () | |
setLongDescriptionVar ($name, $parameters=array(), $language_module='notification') | |
Sets the name of the language variable to use as long description text. More... | |
getLongDescriptionVar () | |
getLanguageParameters () | |
getLinktarget () | |
setLinktarget ($linktarget) | |
setValidForSeconds ($seconds) | |
getValidForSeconds () | |
getVisibleForSeconds () | |
setVisibleForSeconds ($visibleForSeconds) | |
notifyByUsers (array $recipients, $processAsync=false) | |
sends this notification to a list of users More... | |
notifyByListeners ($ref_id, $processAsync=false) | |
notifyByRoles (array $roles, $processAsync=false) | |
getUserInstance (ilObjUser $user, $languageVars, $defaultLanguage) | |
setHandlerParam ($name, $value) | |
getHandlerParams () | |
unsetHandlerParam ($name) | |
Data Fields | |
const | TTL_LONG = 1800 |
const | TTL_SHORT = 120 |
const | DEFAULT_TTS = 5 |
Protected Member Functions | |
beforeSendToUsers () | |
afterSendToUsers () | |
beforeSendToListeners () | |
afterSendToListeners () | |
Protected Attributes | |
$visibleForSeconds = 0 | |
Private Attributes | |
$type | |
$link | |
$linktarget = '_self' | |
$title | |
$iconPath | |
$short_description | |
$long_description | |
$disableAfterDelivery = false | |
$validForSeconds = 0 | |
$handlerParams = array() | |
Describes a notification and provides methods for publishing this notification.
Definition at line 6 of file class.ilNotificationConfig.php.
ilNotificationConfig::__construct | ( | $type | ) |
|
protected |
Definition at line 234 of file class.ilNotificationConfig.php.
Referenced by notifyByListeners().
|
protected |
Definition at line 224 of file class.ilNotificationConfig.php.
Referenced by notifyByUsers().
|
protected |
Definition at line 229 of file class.ilNotificationConfig.php.
Referenced by notifyByListeners().
|
protected |
Definition at line 219 of file class.ilNotificationConfig.php.
Referenced by notifyByUsers().
ilNotificationConfig::getHandlerParams | ( | ) |
ilNotificationConfig::getIconPath | ( | ) |
ilNotificationConfig::getLanguageParameters | ( | ) |
Definition at line 174 of file class.ilNotificationConfig.php.
References array.
Referenced by ilNotificationSystem\toUsers().
ilNotificationConfig::getLink | ( | ) |
ilNotificationConfig::getLinktarget | ( | ) |
ilNotificationConfig::getLongDescriptionVar | ( | ) |
Definition at line 169 of file class.ilNotificationConfig.php.
ilNotificationConfig::getShortDescriptionVar | ( | ) |
Definition at line 147 of file class.ilNotificationConfig.php.
ilNotificationConfig::getTitleVar | ( | ) |
Definition at line 125 of file class.ilNotificationConfig.php.
ilNotificationConfig::getType | ( | ) |
Definition at line 75 of file class.ilNotificationConfig.php.
References $type.
Referenced by ilNotificationDatabaseHandler\enqueueByListener(), ilNotificationSystem\toListeners(), and ilNotificationSystem\toUsers().
ilNotificationConfig::getUserInstance | ( | ilObjUser | $user, |
$languageVars, | |||
$defaultLanguage | |||
) |
Definition at line 267 of file class.ilNotificationConfig.php.
References $iconPath, $title, and ilObjUser\getLanguage().
Referenced by ilNotificationSystem\toUsers().
ilNotificationConfig::getValidForSeconds | ( | ) |
Definition at line 198 of file class.ilNotificationConfig.php.
References $validForSeconds.
Referenced by ilNotificationDatabaseHandler\enqueueByListener(), and ilNotificationDatabaseHandler\enqueueByUsers().
ilNotificationConfig::getVisibleForSeconds | ( | ) |
Definition at line 206 of file class.ilNotificationConfig.php.
References $visibleForSeconds.
Referenced by ilNotificationDatabaseHandler\enqueueByListener(), and ilNotificationDatabaseHandler\enqueueByUsers().
ilNotificationConfig::hasDisableAfterDeliverySet | ( | ) |
Definition at line 85 of file class.ilNotificationConfig.php.
References $disableAfterDelivery.
Referenced by ilNotificationSystem\toListeners().
|
final |
Definition at line 251 of file class.ilNotificationConfig.php.
References $ref_id, afterSendToListeners(), beforeSendToListeners(), and ilNotificationSystem\sendNotificationToListeners().
|
final |
Definition at line 259 of file class.ilNotificationConfig.php.
References ilNotificationSystem\sendNotificationToRoles().
|
final |
sends this notification to a list of users
array | $recipients |
Definition at line 243 of file class.ilNotificationConfig.php.
References afterSendToUsers(), beforeSendToUsers(), and ilNotificationSystem\sendNotificationToUsers().
ilNotificationConfig::setAutoDisable | ( | $value | ) |
Definition at line 80 of file class.ilNotificationConfig.php.
ilNotificationConfig::setHandlerParam | ( | $name, | |
$value | |||
) |
Definition at line 323 of file class.ilNotificationConfig.php.
ilNotificationConfig::setIconPath | ( | $path | ) |
Definition at line 100 of file class.ilNotificationConfig.php.
References $path.
ilNotificationConfig::setLink | ( | $link | ) |
ilNotificationConfig::setLinktarget | ( | $linktarget | ) |
ilNotificationConfig::setLongDescriptionVar | ( | $name, | |
$parameters = array() , |
|||
$language_module = 'notification' |
|||
) |
Sets the name of the language variable to use as long description text.
The translation may include [name] parts wich will be replaced by the matching parameter found in $parameters. The language var is loaded from the language module given as third parameter. The channel itself decided if the short description or the long description should be used Placeholders of type ##name## are deprecated
string | $name | |
array | $parameters | |
string | $language_module |
Definition at line 164 of file class.ilNotificationConfig.php.
ilNotificationConfig::setShortDescriptionVar | ( | $name, | |
$parameters = array() , |
|||
$language_module = 'notification' |
|||
) |
Sets the name of the language variable to use as short description text.
The translation may include [NAME] parts wich will be replaced by the matching parameter found in $parameters. The language var is loaded from the language module given as third parameter. Placeholders of type ##name## are deprecated The channel itself decided if the short description or the long description should be used
string | $name | |
array | $parameters | |
string | $language_module |
Definition at line 142 of file class.ilNotificationConfig.php.
ilNotificationConfig::setTitleVar | ( | $name, | |
$parameters = array() , |
|||
$language_module = 'notification' |
|||
) |
Sets the name of the language variable to use as title.
The translation may include [NAME] parts wich will be replaced by the matching parameter found in $parameters. The language var is loaded from the language module given as third parameter. Placeholders of type ##name## are deprecated
type | $name | |
type | $parameters | |
type | $language_module |
Definition at line 120 of file class.ilNotificationConfig.php.
ilNotificationConfig::setValidForSeconds | ( | $seconds | ) |
Definition at line 193 of file class.ilNotificationConfig.php.
ilNotificationConfig::setVisibleForSeconds | ( | $visibleForSeconds | ) |
int | $visibleForSeconds |
Definition at line 214 of file class.ilNotificationConfig.php.
References $visibleForSeconds.
ilNotificationConfig::unsetHandlerParam | ( | $name | ) |
Definition at line 343 of file class.ilNotificationConfig.php.
|
private |
Definition at line 50 of file class.ilNotificationConfig.php.
Referenced by hasDisableAfterDeliverySet().
|
private |
Definition at line 68 of file class.ilNotificationConfig.php.
Referenced by getHandlerParams().
|
private |
Definition at line 35 of file class.ilNotificationConfig.php.
Referenced by getIconPath(), and getUserInstance().
|
private |
Definition at line 25 of file class.ilNotificationConfig.php.
|
private |
Definition at line 26 of file class.ilNotificationConfig.php.
Referenced by getLinktarget(), and setLinktarget().
|
private |
Definition at line 38 of file class.ilNotificationConfig.php.
|
private |
Definition at line 37 of file class.ilNotificationConfig.php.
|
private |
Definition at line 28 of file class.ilNotificationConfig.php.
Referenced by getUserInstance().
|
private |
Definition at line 17 of file class.ilNotificationConfig.php.
Referenced by __construct(), and getType().
|
private |
Definition at line 56 of file class.ilNotificationConfig.php.
Referenced by getValidForSeconds().
|
protected |
Definition at line 62 of file class.ilNotificationConfig.php.
Referenced by getVisibleForSeconds(), and setVisibleForSeconds().
const ilNotificationConfig::DEFAULT_TTS = 5 |
Definition at line 11 of file class.ilNotificationConfig.php.
Referenced by ilChatroom\isOwnerOfPrivateRoom(), ilAwarenessAct\notifyOnNewOnlineContacts(), ilBuddySystemNotification\send(), and ilBadgeHandler\sendNotification().
const ilNotificationConfig::TTL_LONG = 1800 |
Definition at line 8 of file class.ilNotificationConfig.php.
Referenced by ilChatroom\isOwnerOfPrivateRoom(), and ilBuddySystemNotification\send().
const ilNotificationConfig::TTL_SHORT = 120 |
Definition at line 9 of file class.ilNotificationConfig.php.
Referenced by ilAwarenessAct\notifyOnNewOnlineContacts(), and ilBadgeHandler\sendNotification().