| ILIAS
    release_5-2 Revision v5.2.25-18-g3f80b828510
    | 
Main notification handling routines for sending notifications to recipients. More...
 Collaboration diagram for ilNotificationSystem:
 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.  More... | |
| toUsers (ilNotificationConfig $notification, $users, $processAsync=false) | |
| Creates the user notifications and send them.  More... | |
| toListeners (ilNotificationConfig $notification, $ref_id, $processAsync=false) | |
| Sends the notification to all listener which are subscribed to the given ref_id.  More... | |
| toRoles (ilNotificationConfig $notification, array $roles, $processAsync=false) | |
| Send a notification to a list of roles.  More... | |
| 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:
 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:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 242 of file class.ilNotificationSystem.php.
References $ref_id, and ilNotificationDatabaseHandler\enableListeners().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 247 of file class.ilNotificationSystem.php.
References $ref_id, and ilNotificationDatabaseHandler\enableListeners().
 Here is the call graph for this function:
 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:
 Here is the caller graph for this function:| 
 | static | 
| ilNotificationConfig | $notification | |
| int | $ref_id | |
| boolean | $processAsync | 
Definition at line 227 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 call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| ilNotificationConfig | $notification | |
| string[] | $users | |
| boolean | $processAsync | 
Definition at line 238 of file class.ilNotificationSystem.php.
References getInstance().
Referenced by ilNotificationConfig\notifyByRoles().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| ilNotificationConfig | $notification | |
| int[] | $users | |
| boolean | $processAsync | 
Definition at line 216 of file class.ilNotificationSystem.php.
References getInstance().
Referenced by ilNotificationConfig\notifyByUsers().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller 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 168 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:
 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]).
@global ilRbacReview $rbacreview
| ilNotificationConfig | $notification | |
| array | $roles | |
| boolean | $processAsync | 
Definition at line 193 of file class.ilNotificationSystem.php.
References toUsers().
 Here is the call graph for this function:
 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, $h, $handler, $instance, $lang, ilNotificationDatabaseHandler\enqueueByUsers(), ilNotificationDatabaseHandler\getAvailableChannels(), ilNotificationDatabaseHandler\getAvailableTypes(), ilObjectFactory\getInstanceByObjId(), 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 call graph for this function: Here is the caller 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().