ILIAS
release_4-3 Revision
|
Static Public Member Functions | |
static | setUserConfig ($userid, array $configArray) |
Sets the configuration for all given configurations. | |
static | loadUserConfig ($userid) |
static | enqueueByUsers (ilNotificationConfig $notification, array $userids) |
static | enqueueByListener (ilNotificationConfig $notification, $ref_id) |
static | storeNotification (ilNotificationConfig $notification) |
static | removeNotification ($id) |
static | getUsersByListener ($module, $sender_id) |
static | disableListeners ($module, $sender_id) |
static | enableListeners ($module, $sender_id, array $users=array()) |
static | registerChannel ($name, $title, $description, $class, $classfile, $config_type) |
Registers a new notification channel for distributing notifications. | |
static | registerType ($name, $title, $description, $notification_group, $config_type) |
Registers a new notification type. | |
static | getAvailableChannels ($config_types=array(), $includeDisabled=false) |
static | getAvailableTypes ($config_types=array()) |
static | setConfigTypeForType ($type_name, $config_name) |
static | setConfigTypeForChannel ($channel_name, $config_name) |
static | getUsersWithCustomConfig (array $userid) |
Static Protected Member Functions | |
static | fillPlaceholders ($results, $vars, $langVarToTypeDict) |
static | findPlaceholders ($pattern, $translation) |
Static Private Member Functions | |
static | replaceFields ($string, $foundPlaceholders, $params, $startTag, $endTage) |
Definition at line 5 of file class.ilNotificationDatabaseHelper.php.
|
static |
Definition at line 315 of file class.ilNotificationDatabaseHelper.php.
References $query, and ilNotificationSetupHelper\$tbl_userlistener.
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 325 of file class.ilNotificationDatabaseHelper.php.
References $query, and ilNotificationSetupHelper\$tbl_userlistener.
|
static |
Definition at line 235 of file class.ilNotificationDatabaseHelper.php.
References $query, $ref_id, ilNotificationSetupHelper\$tbl_notification_queue, ilNotificationSetupHelper\$tbl_userlistener, ilNotificationConfig\getType(), ilNotificationConfig\getValidForSeconds(), and storeNotification().
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 213 of file class.ilNotificationDatabaseHelper.php.
References ilNotificationSetupHelper\$tbl_notification_queue, ilNotificationConfig\getValidForSeconds(), and storeNotification().
Referenced by ilNotificationSystem\toUsers().
|
staticprotected |
array | $results | |
array | $vars | |
array | $langVarToTypeDict |
Definition at line 66 of file class.ilNotificationDatabaseHelper.php.
References $res, $results, findPlaceholders(), and replaceFields().
|
staticprotected |
string | $pattern | |
string | $translation |
Definition at line 102 of file class.ilNotificationDatabaseHelper.php.
Referenced by fillPlaceholders().
|
static |
Definition at line 394 of file class.ilNotificationDatabaseHelper.php.
References $query, $result, $row, and ilNotificationSetupHelper\$tbl_notification_channels.
Referenced by ilNotificationAdminSettingsForm\getGeneralSettingsForm(), setUserConfig(), ilObjNotificationAdminGUI\showChannelsObject(), ilObjNotificationAdminGUI\showConfigMatrixObject(), and ilNotificationSystem\toUsers().
|
static |
Definition at line 424 of file class.ilNotificationDatabaseHelper.php.
References $query, $result, $row, and ilNotificationSetupHelper\$tbl_notification_types.
Referenced by setUserConfig(), ilObjNotificationAdminGUI\showConfigMatrixObject(), ilObjNotificationAdminGUI\showTypesObject(), and ilNotificationSystem\toUsers().
|
static |
Definition at line 299 of file class.ilNotificationDatabaseHelper.php.
References $query, $row, and ilNotificationSetupHelper\$tbl_userlistener.
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 466 of file class.ilNotificationDatabaseHelper.php.
References $query, $result, and $row.
Referenced by ilNotificationSystem\toUsers().
|
static |
Definition at line 192 of file class.ilNotificationDatabaseHelper.php.
References $query, $res, $result, $row, and ilNotificationSetupHelper\$tbl_userconfig.
Referenced by ilObjNotificationAdminGUI\showConfigMatrixObject(), ilNotificationGUI\showSettingsObject(), and ilNotificationSystem\toUsers().
|
static |
Registers a new notification channel for distributing notifications.
ilDB $ilDB
type | $name | technical name of the type |
type | $title | human readable title for configuration guis |
type | $description | not yet used human readable description |
type | $class | class name of the handler class |
type | $classfile | class file location of the handler class |
type | $config_type | 'set_by_user' or 'set_by_admin'; restricts if users can override the configuartion for this channel |
Definition at line 352 of file class.ilNotificationDatabaseHelper.php.
References ilNotificationSetupHelper\$tbl_notification_channels, and $title.
|
static |
Registers a new notification type.
ilDB $ilDB
string | $name | technical name of the type |
string | $title | human readable title for configuration guis |
string | $description | not yet used human readable description |
string | $notification_group | not yet used group |
string | $config_type | 'set_by_user' or 'set_by_admin'; restricts if users can override the configuartion for this type |
Definition at line 379 of file class.ilNotificationDatabaseHelper.php.
References ilNotificationSetupHelper\$tbl_notification_types, and $title.
|
static |
Definition at line 289 of file class.ilNotificationDatabaseHelper.php.
References $query, and ilNotificationSetupHelper\$tbl_notification_data.
|
staticprivate |
string | $string | |
array | $foundPlaceholders | |
array | $params | |
string | $startTag | |
string | $endTag |
Definition at line 118 of file class.ilNotificationDatabaseHelper.php.
Referenced by fillPlaceholders().
|
static |
Definition at line 457 of file class.ilNotificationDatabaseHelper.php.
References $query, and ilNotificationSetupHelper\$tbl_notification_channels.
Referenced by ilObjNotificationAdminGUI\saveChannelsObject(), and ilObjNotificationAdminGUI\saveGeneralSettingsObject().
|
static |
Definition at line 449 of file class.ilNotificationDatabaseHelper.php.
References $query, and ilNotificationSetupHelper\$tbl_notification_types.
Referenced by ilObjNotificationAdminGUI\saveTypesObject().
|
static |
Sets the configuration for all given configurations.
Old configurations are completly removed before the new are inserted.
structure of $configArray
array( 'chat_invitation' => array( 'mail' => true, 'osd' => false ), 'adobeconnect_invitation' => array( 'mail' => true, 'osd' => true ), );
If the userid is -1, the settings are stored as general settings (default values or used if configuration type is set_by_admin).
ilDB $ilDB
int | $userid | |
array | $configArray |
Definition at line 158 of file class.ilNotificationDatabaseHelper.php.
References $query, ilNotificationSetupHelper\$tbl_userconfig, getAvailableChannels(), and getAvailableTypes().
Referenced by ilObjNotificationAdminGUI\saveConfigMatrixObject(), and ilNotificationGUI\saveSettingsObject().
|
static |
Definition at line 273 of file class.ilNotificationDatabaseHelper.php.
References ilNotificationSetupHelper\$tbl_notification_data.
Referenced by enqueueByListener(), and enqueueByUsers().