Class humhub\modules\notification\Events

Inheritancehumhub\modules\notification\Events » yii\base\BaseObject

Events provides callbacks for all defined module events.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
onActiveRecordDelete() humhub\modules\notification\Events
onCronDailyRun() On run of the cron, do some cleanup stuff. humhub\modules\notification\Events
onIntegrityCheck() Callback to validate module database records. humhub\modules\notification\Events
onLayoutAddons() humhub\modules\notification\Events
onSpaceDelete() On workspace deletion make sure to delete all posts humhub\modules\notification\Events
onUserDelete() On User delete, also delete all posts humhub\modules\notification\Events

Method Details

onActiveRecordDelete() public static method

public static void onActiveRecordDelete ( $event )
$event
onCronDailyRun() public static method

On run of the cron, do some cleanup stuff.

We delete all notifications which are older than 2 month and are seen.

public static void onCronDailyRun ( $event )
$event \humhub\modules\notification\type
onIntegrityCheck() public static method

Callback to validate module database records.

public static void onIntegrityCheck ( $event )
$event humhub\components\Event
onLayoutAddons() public static method

public static void onLayoutAddons ( $event )
$event
onSpaceDelete() public static method

On workspace deletion make sure to delete all posts

public static void onSpaceDelete ( $event )
$event \humhub\modules\notification\type
onUserDelete() public static method

On User delete, also delete all posts

public static void onUserDelete ( $event )
$event humhub\components\Event