| ILIAS
    release_6 Revision v6.24-5-g0c8bfefb3b8
    | 
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 (\ilRbacReview $rbacReview=null) | |
| 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' | |
| $rbacReview | |
| 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 23 of file class.ilNotificationSystem.php.
References $DIC, $rbacReview, and 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 55 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 255 of file class.ilNotificationSystem.php.
References ilNotificationDatabaseHandler\enableListeners().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
Definition at line 261 of file class.ilNotificationSystem.php.
References ilNotificationDatabaseHandler\enableListeners().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | staticprivate | 
Definition at line 41 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 238 of file class.ilNotificationSystem.php.
References 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 250 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 226 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 180 of file class.ilNotificationSystem.php.
References 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]).
| ilNotificationConfig | $notification | |
| array | $roles | |
| boolean | $processAsync | 
Definition at line 204 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 72 of file class.ilNotificationSystem.php.
References $data, $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().
| 
 | private | 
Definition at line 21 of file class.ilNotificationSystem.php.
Referenced by __construct().