|
ILIAS
release_4-3 Revision
|
Main notification handling routines for sending notifications to recipients. More...
Collaboration diagram for ilNotificationSystem: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().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
static |
Definition at line 238 of file class.ilNotificationSystem.php.
References $ref_id.
Referenced by enableUserListeners().
Here is the caller graph for this function:
|
static |
Definition at line 243 of file class.ilNotificationSystem.php.
References $ref_id, and enableListeners().
Here is the call graph for this function:
|
staticprivate |
Definition at line 33 of file class.ilNotificationSystem.php.
References $instance.
Referenced by sendNotificationToListeners(), sendNotificationToRoles(), and sendNotificationToUsers().
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
| ilNotificationConfig | $notification | |
| string[] | $users | |
| boolean | $processAsync |
Definition at line 234 of file class.ilNotificationSystem.php.
References getInstance().
Referenced by ilNotificationConfig\notifyByRoles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
|
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 $data, $handler, $instance, $lang, $usr_id, ilNotificationDatabaseHandler\enqueueByUsers(), ilNotificationDatabaseHandler\getAvailableChannels(), ilNotificationDatabaseHandler\getAvailableTypes(), ilNotificationConfig\getLanguageParameters(), ilNotificationConfig\getType(), ilNotificationConfig\getUserInstance(), ilNotificationDatabaseHandler\getUsersWithCustomConfig(), and ilNotificationDatabaseHandler\loadUserConfig().
Referenced by toListeners(), and toRoles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().