ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 305 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $module, $query, ilNotificationSetupHelper\$tbl_userlistener, and $values.
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 318 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $module, $query, ilNotificationSetupHelper\$tbl_userlistener, $users, and $values.
Referenced by ilNotificationSystem\enableListeners(), and ilNotificationSystem\enableUserListeners().
|
static |
Definition at line 235 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, ilNotificationSetupHelper\$tbl_notification_queue, ilNotificationSetupHelper\$tbl_userlistener, $values, ilNotificationConfig\getType(), ilNotificationConfig\getValidForSeconds(), ilNotificationConfig\getVisibleForSeconds(), and storeNotification().
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 209 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, ilNotificationSetupHelper\$tbl_notification_queue, $userid, ilNotificationConfig\getValidForSeconds(), ilNotificationConfig\getVisibleForSeconds(), and storeNotification().
Referenced by ilNotificationSystem\toUsers().
|
staticprotected |
array | $results | |
array | $vars | |
array | $langVarToTypeDict |
Definition at line 60 of file class.ilNotificationDatabaseHelper.php.
References $res, and $results.
|
staticprotected |
string | $pattern | |
string | $translation |
Definition at line 94 of file class.ilNotificationDatabaseHelper.php.
|
static |
Definition at line 396 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, $result, $row, and ilNotificationSetupHelper\$tbl_notification_channels.
Referenced by ilNotificationGUI\getAvailableChannels(), ilNotificationAdminSettingsForm\getGeneralSettingsForm(), ilObjNotificationAdminGUI\showChannelsObject(), ilObjNotificationAdminGUI\showConfigMatrixObject(), and ilNotificationSystem\toUsers().
|
static |
Definition at line 431 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, $result, $row, and ilNotificationSetupHelper\$tbl_notification_types.
Referenced by ilNotificationGUI\getAvailableTypes(), ilObjNotificationAdminGUI\showConfigMatrixObject(), ilObjNotificationAdminGUI\showTypesObject(), and ilNotificationSystem\toUsers().
|
static |
Definition at line 286 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $module, $query, $row, ilNotificationSetupHelper\$tbl_userlistener, $users, and $values.
Referenced by ilNotificationSystem\toListeners().
|
static |
Definition at line 485 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, $result, and $row.
Referenced by ilNotificationSystem\toUsers().
|
static |
Definition at line 184 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, $res, $result, $row, ilNotificationSetupHelper\$tbl_userconfig, $userid, and $values.
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 348 of file class.ilNotificationDatabaseHelper.php.
References $description, $DIC, $ilDB, $name, ilNotificationSetupHelper\$tbl_notification_channels, and $title.
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 378 of file class.ilNotificationDatabaseHelper.php.
References $description, $DIC, $ilDB, $name, ilNotificationSetupHelper\$tbl_notification_types, and $title.
Referenced by ilNotificationSetupHelper\registerType().
|
static |
Definition at line 273 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $id, $ilDB, $query, ilNotificationSetupHelper\$tbl_notification_data, and $values.
|
staticprivate |
string | $string | |
array | $foundPlaceholders | |
array | $params | |
string | $startTag | |
string | $endTag |
Definition at line 110 of file class.ilNotificationDatabaseHelper.php.
References PHPMailer\PHPMailer\$params.
|
static |
Definition at line 472 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, ilNotificationSetupHelper\$tbl_notification_channels, and $values.
Referenced by ilObjNotificationAdminGUI\saveChannelsObject(), and ilObjNotificationAdminGUI\saveGeneralSettingsObject().
|
static |
Definition at line 460 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, ilNotificationSetupHelper\$tbl_notification_types, and $values.
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 147 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $ilDB, $query, ilNotificationSetupHelper\$tbl_userconfig, $type, $userid, and $values.
Referenced by ilObjNotificationAdminGUI\saveConfigMatrixObject(), ilObjContactAdministrationGUI\saveConfigurationForm(), and ilNotificationGUI\saveSettingsObject().
|
static |
Definition at line 254 of file class.ilNotificationDatabaseHelper.php.
References $DIC, $id, $ilDB, and ilNotificationSetupHelper\$tbl_notification_data.
Referenced by enqueueByListener(), and enqueueByUsers().