Class humhub\modules\like\Events

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

Events provides callbacks to handle events.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
onActiveRecordDelete() On any ActiveRecord deletion check for assigned likes humhub\modules\like\Events
onIntegrityCheck() Callback to validate module database records. humhub\modules\like\Events
onUserDelete() On User delete, also delete all comments humhub\modules\like\Events
onWallEntryLinksInit() On initalizing the wall entry controls also add the like link widget humhub\modules\like\Events

Method Details

onActiveRecordDelete() public static method

On any ActiveRecord deletion check for assigned likes

public static boolean onActiveRecordDelete ( $event )
$event
throws Throwable
throws \yii\db\StaleObjectException
onIntegrityCheck() public static method

Callback to validate module database records.

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

On User delete, also delete all comments

public static boolean onUserDelete ( $event )
$event humhub\components\Event
throws Throwable
throws \yii\db\StaleObjectException
onWallEntryLinksInit() public static method

On initalizing the wall entry controls also add the like link widget

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