Class humhub\modules\live\Events

Inheritancehumhub\modules\live\Events » yii\base\BaseObject
Available since version1.2

Events provides callbacks to handle events.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
onFollowEvent() FollowEvent is called when a following was created or removed Used to clear the cache legitimate cache. humhub\modules\live\Events
onFriendshipEvent() FriendshipEvent is called when a friendship was created or removed Used to clear the cache legitimate cache. humhub\modules\live\Events
onHourlyCronRun() On hourly cron job, add database cleanup task humhub\modules\live\Events
onMemberEvent() MemberEvent is called when a user left or joined a space Used to clear the cache legitimate cache. humhub\modules\live\Events

Method Details

onFollowEvent() public static method

FollowEvent is called when a following was created or removed Used to clear the cache legitimate cache.

public static void onFollowEvent ( humhub\modules\user\events\FollowEvent $event )
$event
onFriendshipEvent() public static method

FriendshipEvent is called when a friendship was created or removed Used to clear the cache legitimate cache.

public static void onFriendshipEvent ( humhub\modules\friendship\FriendshipEvent $event )
$event
onHourlyCronRun() public static method

On hourly cron job, add database cleanup task

public static void onHourlyCronRun ( )
onMemberEvent() public static method

MemberEvent is called when a user left or joined a space Used to clear the cache legitimate cache.

public static void onMemberEvent ( humhub\modules\space\MemberEvent $event )
$event