Class humhub\modules\like\notifications\LikeNotificationCategory

Inheritancehumhub\modules\like\notifications\LikeNotificationCategory » humhub\modules\notification\components\NotificationCategory » yii\base\BaseObject

LikeNotificationCategory

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getDefaultSetting() Returns the default enabled settings for the given $target. humhub\modules\like\notifications\LikeNotificationCategory
getDescription() Returns a group description humhub\modules\like\notifications\LikeNotificationCategory
getFixedSettings() Returns an array of target ids, which are not editable. humhub\modules\notification\components\NotificationCategory
getTitle() Returns a human readable title of this category humhub\modules\like\notifications\LikeNotificationCategory
init() humhub\modules\notification\components\NotificationCategory
isFixedSetting() Checks if the given notification target is fixed for this category. humhub\modules\notification\components\NotificationCategory
isVisible() Determines if this category is visible for the given $user. humhub\modules\notification\components\NotificationCategory

Property Details

$id public property

The category id

public string $id 'like'

Method Details

getDefaultSetting() public method

Returns the default enabled settings for the given $target.

In case the $target is unknown, subclasses can either return $target->defaultSetting or another default value.

public boolean getDefaultSetting ( humhub\modules\notification\targets\BaseTarget $target )
$target humhub\modules\notification\targets\BaseTarget
getDescription() public method

Returns a group description

public void getDescription ( )
getTitle() public method

Returns a human readable title of this category

public void getTitle ( )