UserNotificationUtil Class Reference

Static Public Member Functions

static isEnabledByUserAndNotificationNameAndType (User $user, $name, $type)
static getNotificationSettingsByUser (User $user)
static resolveDefaultNotificationSettingsDefaultValuesByUser (User $user, &$defaultNotificationSettings)
static getAllNotificationSettingAttributes ()
static getNotificationSettingsDefaultValues ()
static resolveAndGetValue (User $user, $key, $returnBoolean=true)
static setValue (User $user, $value, $key, $saveBoolean=true)
static setEmailNotificationSettingsAllDisabledForUser ($user)
static getNotificationRulesTypesForCurrentUserByModule ()
static getConfigurationElementTypeByNotificationType ($type)
static getConfigurationAttributeByNotificationType ($type)
static getTooltipIdByAttribute ($attribute)
static getTooltipTitleByAttribute ($attribute)
static getSettingNameAndTypeBySuffixedConfigurationAttribute ($suffixedConfigurationAttribute)

Detailed Description

Definition at line 37 of file UserNotificationUtil.php.


Member Function Documentation

static setEmailNotificationSettingsAllDisabledForUser ( user  )  [static]

Set email notifications settings to be all disabled

Parameters:
User $user

Definition at line 134 of file UserNotificationUtil.php.

static getNotificationRulesTypesForCurrentUserByModule (  )  [static]

Based on the current user, return the NotificationRules types and their display labels. Only include notification rules that the user has a right to access its corresponding module.

Returns:
array of notification rules types and display labels.

Definition at line 158 of file UserNotificationUtil.php.

static getConfigurationElementTypeByNotificationType ( type  )  [static]

The element type to be used on the

See also:
UserNotificationConfigurationEditView
Parameters:
$type 
Returns:
string

Definition at line 213 of file UserNotificationUtil.php.

static getConfigurationAttributeByNotificationType ( type  )  [static]

The attribute used on the

See also:
UserNotificationConfigurationEditView
Parameters:
$type 
Returns:
string

Definition at line 224 of file UserNotificationUtil.php.

static getTooltipIdByAttribute ( attribute  )  [static]

The tooltip id used on

See also:
UserNotificationConfigurationEditView
Parameters:
$attribute 
Returns:
string

Definition at line 235 of file UserNotificationUtil.php.

static getTooltipTitleByAttribute ( attribute  )  [static]

The tooltip title used on

See also:
UserNotificationConfigurationEditView
Parameters:
$attribute 
Returns:
string

Definition at line 248 of file UserNotificationUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Jul 18 07:11:11 2019