Class humhub\modules\notification\targets\WebTarget

Inheritancehumhub\modules\notification\targets\WebTarget » humhub\modules\notification\targets\BaseTarget » yii\base\BaseObject
Available since version1.2

Web Target

Public Methods

Hide inherited methods

MethodDescriptionDefined By
acknowledge() Used to acknowledge the seding/processing of the given $notification. humhub\modules\notification\targets\BaseTarget
getId() Static access to the target id. humhub\modules\notification\targets\BaseTarget
getRenderer() humhub\modules\notification\targets\BaseTarget
getSettingKey() Returns the setting key for this target of the given $category. humhub\modules\notification\targets\BaseTarget
getTitle() humhub\modules\notification\targets\WebTarget
handle() Handles Webnotifications by setting the send_web_notifications flag and sending an live event. humhub\modules\notification\targets\WebTarget
init() humhub\modules\notification\targets\BaseTarget
isAcknowledged() humhub\modules\notification\targets\BaseTarget
isActive() Some BaseTargets may need to be activated first or require a certain permission in order to be used. humhub\modules\notification\targets\BaseTarget
isCategoryEnabled() Returns the enabled setting of this target for the given $category. humhub\modules\notification\targets\BaseTarget
isEditable() Checks if the settings for this target are editable. humhub\modules\notification\targets\BaseTarget
isEnabled() Checks if the given $notification is enabled for this target. humhub\modules\notification\targets\BaseTarget
send() Used to process a $notification for the given $user. humhub\modules\notification\targets\BaseTarget
sendBulk() Used for handling the given $notification for multiple $users. humhub\modules\notification\targets\BaseTarget

Property Details

$defaultSetting public property
public boolean $defaultSetting true
$id public property
public string $id 'web'

Method Details

getTitle() public method

public string getTitle ( )
return string

Human readable title for views.

handle() public method

Handles Webnotifications by setting the send_web_notifications flag and sending an live event.

public void handle ( humhub\modules\notification\components\BaseNotification $notification, humhub\modules\user\models\User $user )
$notification
$user