ILIAS
Release_5_0_x_branch Revision 61816
|
Main notification handling routines for sending notifications to recipients. More...
Static Public Member Functions | |
static | sendNotificationToUsers (ilNotificationConfig $notification, $users, $processAsync=false) |
static | sendNotificationToListeners (ilNotificationConfig $notification, $ref_id, $processAsync=false) |
static | sendNotificationToRoles (ilNotificationConfig $notification, array $roles, $processAsync=false) |
static | enableListeners ($module, $ref_id) |
static | enableUserListeners ($module, $ref_id, array $users) |
Private Member Functions | |
__construct () | |
addHandler ($channel, ilNotificationHandler $handler) | |
Registers a new handler for the given channel name. | |
toUsers (ilNotificationConfig $notification, $users, $processAsync=false) | |
Creates the user notifications and send them. | |
toListeners (ilNotificationConfig $notification, $ref_id, $processAsync=false) | |
Sends the notification to all listener which are subscribed to the given ref_id. | |
toRoles (ilNotificationConfig $notification, array $roles, $processAsync=false) | |
Send a notification to a list of roles. |
Static Private Member Functions | |
static | getInstance () |
Private Attributes | |
$handler = array() | |
$defaultLanguage = 'en' |
Static Private Attributes | |
static | $instance |
Main notification handling routines for sending notifications to recipients.
Recipients may be
Definition at line 13 of file class.ilNotificationSystem.php.
|
private |
Definition at line 21 of file class.ilNotificationSystem.php.
References addHandler().
|
private |
Registers a new handler for the given channel name.
string | $channel | |
ilNotificationHandler | $handler |
Definition at line 46 of file class.ilNotificationSystem.php.
References $handler.
Referenced by __construct().
|
static |
Definition at line 238 of file class.ilNotificationSystem.php.
References $ref_id.
Referenced by enableUserListeners().
|
static |
Definition at line 243 of file class.ilNotificationSystem.php.
References $ref_id, and enableListeners().
|
staticprivate |
Definition at line 33 of file class.ilNotificationSystem.php.
References $instance.
Referenced by sendNotificationToListeners(), sendNotificationToRoles(), and sendNotificationToUsers().
|
static |
ilNotificationConfig | $notification | |
int | $ref_id | |
boolean | $processAsync |
Definition at line 223 of file class.ilNotificationSystem.php.
References $ref_id, and getInstance().
Referenced by ilNotificationConfig\notifyByListeners().
|
static |
ilNotificationConfig | $notification | |
string[] | $users | |
boolean | $processAsync |
Definition at line 234 of file class.ilNotificationSystem.php.
References getInstance().
Referenced by ilNotificationConfig\notifyByRoles().
|
static |
ilNotificationConfig | $notification | |
int[] | $users | |
boolean | $processAsync |
Definition at line 212 of file class.ilNotificationSystem.php.
References getInstance().
Referenced by ilNotificationConfig\notifyByUsers(), and ilNotificationOSDHandler\removeNotification().
|
private |
Sends the notification to all listener which are subscribed to the given ref_id.
ilNotificationConfig | $notification | |
type | $ref_id | |
type | $processAsync |
Definition at line 164 of file class.ilNotificationSystem.php.
References $ref_id, ilNotificationDatabaseHandler\disableListeners(), ilNotificationDatabaseHandler\enqueueByListener(), ilNotificationConfig\getType(), ilNotificationDatabaseHandler\getUsersByListener(), ilNotificationConfig\hasDisableAfterDeliverySet(), and toUsers().
|
private |
Send a notification to a list of roles.
The recipients are fetched by calling $rbacreview->assignedUsers($roles[$i]).
ilRbacReview $rbacreview
ilNotificationConfig | $notification | |
array | $roles | |
boolean | $processAsync |
Definition at line 189 of file class.ilNotificationSystem.php.
References toUsers().
|
private |
Creates the user notifications and send them.
If processAsync is true the notifications will be serialized and persisted to the database
ilNotificationConfig | $notification | |
type | $users | |
type | $processAsync |
Definition at line 61 of file class.ilNotificationSystem.php.
References $handler, $instance, $lang, ilNotificationDatabaseHandler\enqueueByUsers(), ilNotificationDatabaseHandler\getAvailableChannels(), ilNotificationDatabaseHandler\getAvailableTypes(), ilNotificationConfig\getLanguageParameters(), ilNotificationConfig\getType(), ilNotificationConfig\getUserInstance(), ilNotificationDatabaseHandler\getUsersWithCustomConfig(), and ilNotificationDatabaseHandler\loadUserConfig().
Referenced by toListeners(), and toRoles().
|
private |
Definition at line 19 of file class.ilNotificationSystem.php.
|
private |
Definition at line 17 of file class.ilNotificationSystem.php.
Referenced by addHandler(), and toUsers().
|
staticprivate |
Definition at line 15 of file class.ilNotificationSystem.php.
Referenced by getInstance(), and toUsers().