ILIAS
release_4-3 Revision
|
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. | |
getTitleVar () | |
setShortDescriptionVar ($name, $parameters=array(), $language_module= 'notification') | |
Sets the name of the language variable to use as short description text. | |
getShortDescriptionVar () | |
setLongDescriptionVar ($name, $parameters=array(), $language_module= 'notification') | |
Sets the name of the language variable to use as long description text. | |
getLongDescriptionVar () | |
getLanguageParameters () | |
getLinktarget () | |
setLinktarget ($linktarget) | |
setValidForSeconds ($seconds) | |
getValidForSeconds () | |
notifyByUsers (array $recipients, $processAsync=false) | |
sends this notification to a list of users | |
notifyByListeners ($ref_id, $processAsync=false) | |
notifyByRoles (array $roles, $processAsync=false) | |
getUserInstance (ilObjUser $user, $languageVars, $defaultLanguage) | |
setHandlerParam ($name, $value) | |
getHandlerParams () | |
unsetHandlerParam ($name) |
Protected Member Functions | |
beforeSendToUsers () | |
afterSendToUsers () | |
beforeSendToListeners () | |
afterSendToListeners () |
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 | ) |
Definition at line 65 of file class.ilNotificationConfig.php.
References $type.
|
protected |
Definition at line 199 of file class.ilNotificationConfig.php.
Referenced by notifyByListeners().
|
protected |
Definition at line 191 of file class.ilNotificationConfig.php.
Referenced by notifyByUsers().
|
protected |
Definition at line 195 of file class.ilNotificationConfig.php.
Referenced by notifyByListeners().
|
protected |
Definition at line 187 of file class.ilNotificationConfig.php.
Referenced by notifyByUsers().
ilNotificationConfig::getHandlerParams | ( | ) |
Definition at line 288 of file class.ilNotificationConfig.php.
References $handlerParams.
ilNotificationConfig::getIconPath | ( | ) |
Definition at line 93 of file class.ilNotificationConfig.php.
References $iconPath.
ilNotificationConfig::getLanguageParameters | ( | ) |
Definition at line 163 of file class.ilNotificationConfig.php.
Referenced by ilNotificationSystem\toUsers().
ilNotificationConfig::getLink | ( | ) |
Definition at line 85 of file class.ilNotificationConfig.php.
References $link.
ilNotificationConfig::getLinktarget | ( | ) |
Definition at line 171 of file class.ilNotificationConfig.php.
References $linktarget.
ilNotificationConfig::getLongDescriptionVar | ( | ) |
Definition at line 159 of file class.ilNotificationConfig.php.
ilNotificationConfig::getShortDescriptionVar | ( | ) |
Definition at line 136 of file class.ilNotificationConfig.php.
ilNotificationConfig::getTitleVar | ( | ) |
Definition at line 113 of file class.ilNotificationConfig.php.
ilNotificationConfig::getType | ( | ) |
Definition at line 69 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 230 of file class.ilNotificationConfig.php.
References $iconPath, $title, and ilObjUser\getLanguage().
Referenced by ilNotificationSystem\toUsers().
ilNotificationConfig::getValidForSeconds | ( | ) |
Definition at line 183 of file class.ilNotificationConfig.php.
References $validForSeconds.
Referenced by ilNotificationDatabaseHandler\enqueueByListener(), and ilNotificationDatabaseHandler\enqueueByUsers().
ilNotificationConfig::hasDisableAfterDeliverySet | ( | ) |
Definition at line 77 of file class.ilNotificationConfig.php.
References $disableAfterDelivery.
Referenced by ilNotificationSystem\toListeners().
|
final |
Definition at line 216 of file class.ilNotificationConfig.php.
References $ref_id, afterSendToListeners(), beforeSendToListeners(), and ilNotificationSystem\sendNotificationToListeners().
|
final |
Definition at line 223 of file class.ilNotificationConfig.php.
References ilNotificationSystem\sendNotificationToRoles().
|
final |
sends this notification to a list of users
array | $recipients |
Definition at line 208 of file class.ilNotificationConfig.php.
References afterSendToUsers(), beforeSendToUsers(), and ilNotificationSystem\sendNotificationToUsers().
ilNotificationConfig::setAutoDisable | ( | $value | ) |
Definition at line 73 of file class.ilNotificationConfig.php.
ilNotificationConfig::setHandlerParam | ( | $name, | |
$value | |||
) |
Definition at line 276 of file class.ilNotificationConfig.php.
ilNotificationConfig::setIconPath | ( | $path | ) |
Definition at line 89 of file class.ilNotificationConfig.php.
References $path.
ilNotificationConfig::setLink | ( | $link | ) |
Definition at line 81 of file class.ilNotificationConfig.php.
References $link.
ilNotificationConfig::setLinktarget | ( | $linktarget | ) |
Definition at line 175 of file class.ilNotificationConfig.php.
References $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 155 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 132 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 109 of file class.ilNotificationConfig.php.
ilNotificationConfig::setValidForSeconds | ( | $seconds | ) |
Definition at line 179 of file class.ilNotificationConfig.php.
ilNotificationConfig::unsetHandlerParam | ( | $name | ) |
Definition at line 292 of file class.ilNotificationConfig.php.
|
private |
Definition at line 49 of file class.ilNotificationConfig.php.
Referenced by hasDisableAfterDeliverySet().
|
private |
Definition at line 63 of file class.ilNotificationConfig.php.
Referenced by getHandlerParams().
|
private |
Definition at line 32 of file class.ilNotificationConfig.php.
Referenced by getIconPath(), and getUserInstance().
|
private |
Definition at line 21 of file class.ilNotificationConfig.php.
|
private |
Definition at line 22 of file class.ilNotificationConfig.php.
Referenced by getLinktarget(), and setLinktarget().
|
private |
Definition at line 35 of file class.ilNotificationConfig.php.
|
private |
Definition at line 34 of file class.ilNotificationConfig.php.
|
private |
Definition at line 24 of file class.ilNotificationConfig.php.
Referenced by getUserInstance().
|
private |
Definition at line 12 of file class.ilNotificationConfig.php.
Referenced by __construct(), and getType().
|
private |
Definition at line 56 of file class.ilNotificationConfig.php.
Referenced by getValidForSeconds().