Class humhub\modules\comment\Events

Inheritancehumhub\modules\comment\Events » yii\base\Component

Events provides callbacks to handle events.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
onContentDelete() On content deletion make sure to delete all its comments humhub\modules\comment\Events
onIntegrityCheck() Callback to validate module database records. humhub\modules\comment\Events
onSearchAttributes() Handles the SearchAttributesEvent and adds related comments humhub\modules\comment\Events
onUserDelete() On User delete, also delete all comments humhub\modules\comment\Events
onWallEntryAddonInit() On init of the WallEntryAddonWidget, attach the comment widget. humhub\modules\comment\Events
onWallEntryLinksInit() On init of the WallEntryLinksWidget, attach the comment link widget. humhub\modules\comment\Events

Method Details

onContentDelete() public static method

On content deletion make sure to delete all its comments

public static void onContentDelete ( $event )
$event \yii\base\Event
onIntegrityCheck() public static method

Callback to validate module database records.

public static void onIntegrityCheck ( $event )
$event \yii\base\Event
onSearchAttributes() public static method (available since version 1.2.3)

Handles the SearchAttributesEvent and adds related comments

public static void onSearchAttributes ( humhub\modules\search\events\SearchAttributesEvent $event )
$event humhub\modules\search\events\SearchAttributesEvent
onUserDelete() public static method

On User delete, also delete all comments

public static void onUserDelete ( $event )
$event \yii\base\Event
onWallEntryAddonInit() public static method

On init of the WallEntryAddonWidget, attach the comment widget.

public static void onWallEntryAddonInit ( $event )
$event \yii\base\Event
onWallEntryLinksInit() public static method

On init of the WallEntryLinksWidget, attach the comment link widget.

public static void onWallEntryLinksInit ( $event )
$event \yii\base\Event