ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Static Public Member Functions | |
static | setUserConfig ($userid, array $configArray) |
Sets the configuration for all given configurations. More... | |
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. More... | |
static | registerType ($name, $title, $description, $notification_group, $config_type) |
Registers a new notification type. More... | |
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 317 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, ilNotificationSetupHelper\$tbl_userlistener, and array.
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 327 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, ilNotificationSetupHelper\$tbl_userlistener, and array.
Referenced by ilNotificationSystem\enableListeners(), and ilNotificationSystem\enableUserListeners().
|
static |
Definition at line 237 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, $ref_id, ilNotificationSetupHelper\$tbl_notification_queue, ilNotificationSetupHelper\$tbl_userlistener, array, ilNotificationConfig\getType(), ilNotificationConfig\getValidForSeconds(), ilNotificationConfig\getVisibleForSeconds(), storeNotification(), and time.
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 213 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, ilNotificationSetupHelper\$tbl_notification_queue, array, ilNotificationConfig\getValidForSeconds(), ilNotificationConfig\getVisibleForSeconds(), storeNotification(), and time.
Referenced by ilNotificationSystem\toUsers().
|
staticprotected |
array | $results | |
array | $vars | |
array | $langVarToTypeDict |
Definition at line 66 of file class.ilNotificationDatabaseHelper.php.
References $res, $results, and array.
|
staticprotected |
string | $pattern | |
string | $translation |
Definition at line 102 of file class.ilNotificationDatabaseHelper.php.
References array.
|
static |
Definition at line 396 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, $result, $row, ilNotificationSetupHelper\$tbl_notification_channels, and array.
Referenced by ilNotificationGUI\getAvailableChannels(), ilNotificationAdminSettingsForm\getGeneralSettingsForm(), ilObjNotificationAdminGUI\showChannelsObject(), ilObjNotificationAdminGUI\showConfigMatrixObject(), and ilNotificationSystem\toUsers().
|
static |
Definition at line 426 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, $result, $row, ilNotificationSetupHelper\$tbl_notification_types, and array.
Referenced by ilNotificationGUI\getAvailableTypes(), ilObjNotificationAdminGUI\showConfigMatrixObject(), ilObjNotificationAdminGUI\showTypesObject(), and ilNotificationSystem\toUsers().
|
static |
Definition at line 301 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, $row, ilNotificationSetupHelper\$tbl_userlistener, and array.
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 468 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, $result, $row, and array.
Referenced by ilNotificationSystem\toUsers().
|
static |
Definition at line 192 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, $res, $result, $row, ilNotificationSetupHelper\$tbl_userconfig, and array.
Referenced by ilObjContactAdministrationGUI\saveConfigurationForm(), ilObjNotificationAdminGUI\showConfigMatrixObject(), ilObjContactAdministrationGUI\showConfigurationForm(), 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 354 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, ilNotificationSetupHelper\$tbl_notification_channels, $title, and array.
Referenced by ilNotificationSetupHelper\registerChannel().
|
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 381 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, ilNotificationSetupHelper\$tbl_notification_types, $title, and array.
Referenced by ilNotificationSetupHelper\registerType().
|
static |
Definition at line 291 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, ilNotificationSetupHelper\$tbl_notification_data, and array.
|
staticprivate |
string | $string | |
array | $foundPlaceholders | |
array | $params | |
string | $startTag | |
string | $endTag |
Definition at line 118 of file class.ilNotificationDatabaseHelper.php.
References $params.
|
static |
Definition at line 459 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, ilNotificationSetupHelper\$tbl_notification_channels, and array.
Referenced by ilObjNotificationAdminGUI\saveChannelsObject(), and ilObjNotificationAdminGUI\saveGeneralSettingsObject().
|
static |
Definition at line 451 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, $query, ilNotificationSetupHelper\$tbl_notification_types, and array.
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 $ilDB, $query, ilNotificationSetupHelper\$tbl_userconfig, and array.
Referenced by ilObjNotificationAdminGUI\saveConfigMatrixObject(), ilObjContactAdministrationGUI\saveConfigurationForm(), and ilNotificationGUI\saveSettingsObject().
|
static |
Definition at line 275 of file class.ilNotificationDatabaseHelper.php.
References $ilDB, ilNotificationSetupHelper\$tbl_notification_data, and array.
Referenced by enqueueByListener(), and enqueueByUsers().