Class humhub\modules\file\Events

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

Events provides callbacks to handle events.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
onBeforeActiveRecordDelete() On delete of a model, check there are files bound to it and delete them humhub\modules\file\Events
onCronDailyRun() On cron daily run do some cleanup stuff. humhub\modules\file\Events
onIntegrityCheck() Callback to validate module database records. humhub\modules\file\Events
onSearchAttributes() Handles the SearchAttributesEvent and adds related files humhub\modules\file\Events
onUserDelete() humhub\modules\file\Events
onWallEntryAddonInit() On init of the WallEntryAddonWidget, attach the files of the content. humhub\modules\file\Events

Method Details

onBeforeActiveRecordDelete() public static method

On delete of a model, check there are files bound to it and delete them

public static void onBeforeActiveRecordDelete ( $event )
$event \yii\base\Event
onCronDailyRun() public static method

On cron daily run do some cleanup stuff.

We delete all files which are not assigned to object_model/object_id within 1 day.

public static void onCronDailyRun ( $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 files

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

public static void onUserDelete ( $event )
$event
onWallEntryAddonInit() public static method

On init of the WallEntryAddonWidget, attach the files of the content.

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