Class humhub\modules\notification\models\forms\NotificationSettings
Inheritance | humhub\modules\notification\models\forms\NotificationSettings » yii\base\Model |
---|
Description of NotificationSettings
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$desktopNotifications | boolean | Manage if the user/users should receive desktop notifications. | humhub\modules\notification\models\forms\NotificationSettings |
$settings | array | humhub\modules\notification\models\forms\NotificationSettings | |
$spaceGuids | string[] | Holds the selected spaces for receiving content created notifications. | humhub\modules\notification\models\forms\NotificationSettings |
$user | humhub\modules\user\models\User | Instance for which the settings should by appleid, if null global settings are used. | humhub\modules\notification\models\forms\NotificationSettings |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$_targets | humhub\modules\notification\targets\BaseTarget[] | humhub\modules\notification\models\forms\NotificationSettings |
Public Methods
Property Details
Manage if the user/users should receive desktop notifications.
Holds the selected spaces for receiving content created notifications.
Instance for which the settings should by appleid, if null global settings are used.
Method Details
public void attributeLabels ( ) |
public humhub\modules\notification\components\NotificationCategory[] categories ( ) | ||
return | humhub\modules\notification\components\NotificationCategory[] | NotificationCategories enabled for this user (or global) |
---|
public void checkPermission ( ) |
Returns the field name for the given category/target combination.
public string getSettingFormname ( $category, $target ) | ||
$category | humhub\modules\notification\components\NotificationCategory | |
$target | humhub\modules\notification\targets\BaseTarget |
public void getSettings ( ) |
public void init ( ) |
Checks if this form has already been saved before.
public boolean isUserSettingLoaded ( ) |
public void resetUserSettings ( ) |
public void rules ( ) |
Saves the settings for the given user (or global if no user is given).
public boolean save ( ) | ||
return | boolean | If the save process was successful else false |
---|---|---|
throws | \yii\web\HttpException |
public humhub\modules\notification\targets\BaseTarget[] targets ( ) | ||
return | humhub\modules\notification\targets\BaseTarget[] | The notification targets enabled for this user (or global) |
---|