Nextcloud Circles API

EventsService
in package

Tags
deprecated

Class EventsService

Table of Contents

$activityManager  : IManager
$circlesRequest  : DeprecatedCirclesRequest
$configService  : ConfigService
$eventDispatcher  : EventDispatcher
$membersRequest  : DeprecatedMembersRequest
$miscService  : MiscService
$notificationManager  : IManager
$time  : ITimeFactory
$urlGenerator  : IURLGenerator
$userId  : string
$userManager  : IUserManager
__construct()  : mixed
Events constructor.
deleteNotification()  : mixed
onCircleCreation()  : mixed
onCircleCreation()
onCircleDestruction()  : mixed
onCircleDestruction()
onGroupLevel()  : mixed
onGroupLevel()
onGroupLink()  : mixed
onGroupLink()
onGroupUnlink()  : mixed
onGroupUnlink()
onLinkDown()  : mixed
onLinkDown()
onLinkRemove()  : mixed
onLinkRemove()
onLinkRequestAccepted()  : mixed
onLinkRequestAccepted()
onLinkRequestAccepting()  : mixed
onLinkRequestAccepting()
onLinkRequestCanceled()  : mixed
onLinkRequestCanceled()
onLinkRequestReceived()  : mixed
onLinkRequestReceived()
onLinkRequestRejected()  : mixed
onLinkRequestRejected()
onLinkRequestSent()  : mixed
onLinkRequestSent()
onLinkUp()  : mixed
onLinkUp()
onMemberLeaving()  : mixed
onMemberLeaving()
onMemberLevel()  : mixed
onMemberLevel()
onMemberNew()  : mixed
onMemberNew()
onMemberOwner()  : mixed
onMemberOwner()
onSettingsChange()  : mixed
onSettingsChange()
createNotification()  : INotification
dispatch()  : mixed
generateEvent()  : IEvent
generateEvent() Create an Activity Event with the basic settings for the app.
notificationOnInvitation()  : mixed
notificationOnMemberNew()  : mixed
notificationOnRequest()  : mixed
onMemberAlmost()  : mixed
onMemberAlmost()
onMemberInvited()  : mixed
onMemberInvited()
onMemberRequesting()  : mixed
onMemberRequesting()
publishEvent()  : mixed
Publish the event to the users.

Properties

$circlesRequest

private DeprecatedCirclesRequest $circlesRequest

$membersRequest

private DeprecatedMembersRequest $membersRequest

Methods

__construct()

Events constructor.

public __construct(string $userId, ITimeFactory $time, IManager $activityManager, IManager $notificationManager, IUserManager $userManager, IURLGenerator $urlGenerator, EventDispatcher $eventDispatcher, DeprecatedCirclesRequest $circlesRequest, DeprecatedMembersRequest $membersRequest, ConfigService $configService, MiscService $miscService) : mixed
Parameters
$userId : string
$time : ITimeFactory
$activityManager : IManager
$notificationManager : IManager
$userManager : IUserManager
$urlGenerator : IURLGenerator
$eventDispatcher : EventDispatcher
$circlesRequest : DeprecatedCirclesRequest
$membersRequest : DeprecatedMembersRequest
$configService : ConfigService
$miscService : MiscService
Return values
mixed

deleteNotification()

public deleteNotification(string $object, string $objectId) : mixed
Parameters
$object : string
$objectId : string
Return values
mixed

onCircleCreation()

onCircleCreation()

public onCircleCreation(DeprecatedCircle $circle) : mixed

Called when a circle is created. Broadcast an activity to the cloud We won't do anything if the circle is not PUBLIC or CLOSED

Parameters
$circle : DeprecatedCircle
Return values
mixed

onCircleDestruction()

onCircleDestruction()

public onCircleDestruction(DeprecatedCircle $circle) : mixed

Called when a circle is destroyed. Broadcast an activity on its members. We won't do anything if the circle is PERSONAL

Parameters
$circle : DeprecatedCircle
Return values
mixed

onGroupUnlink()

public onGroupUnlink(DeprecatedCircle $circle, DeprecatedMember $group) : mixed

Called when a group is unlinked from a circle. Broadcast an activity to the member of the unlinked group and to the moderators of the circle. We won't do anything if the circle is PERSONAL

Parameters
$circle : DeprecatedCircle
$group : DeprecatedMember
Return values
mixed

onMemberLeaving()

onMemberLeaving()

public onMemberLeaving(DeprecatedCircle $circle, DeprecatedMember $member) : mixed

Called when a member is removed from a circle. Broadcast an activity to the leaving member and to the moderators of the circle. We won't do anything if the circle is PERSONAL

Parameters
$circle : DeprecatedCircle
$member : DeprecatedMember
Return values
mixed

onMemberLevel()

onMemberLevel()

public onMemberLevel(DeprecatedCircle $circle, DeprecatedMember $member) : mixed

Called when a member have his level changed. Broadcast an activity to all moderator of the circle, and the member if he is demoted. If the level is Owner, we identify the event as a Coup d'Etat and we broadcast all members.

Parameters
$circle : DeprecatedCircle
$member : DeprecatedMember
Return values
mixed

onMemberNew()

onMemberNew()

public onMemberNew(DeprecatedCircle $circle, DeprecatedMember $member) : mixed

Called when a member is added to a circle. Broadcast an activity to the new member and to the moderators of the circle. We won't do anything if the circle is PERSONAL If the level is still 0, we will redirect to onMemberAlmost and manage the invitation/request from there If the level is Owner, we ignore the event.

Parameters
$circle : DeprecatedCircle
$member : DeprecatedMember
Return values
mixed

onSettingsChange()

onSettingsChange()

public onSettingsChange(DeprecatedCircle $circle[, array<string|int, mixed> $oldSettings = [] ]) : mixed

Called when the circle's settings are changed

Parameters
$circle : DeprecatedCircle
$oldSettings : array<string|int, mixed> = []
Return values
mixed

dispatch()

private dispatch(string $context, array<string|int, mixed> $arguments) : mixed
Parameters
$context : string
$arguments : array<string|int, mixed>
Return values
mixed

generateEvent()

generateEvent() Create an Activity Event with the basic settings for the app.

private generateEvent( $type) : IEvent
Parameters
$type :
Return values
IEvent

publishEvent()

Publish the event to the users.

private publishEvent(IEvent $event, array<string|int, mixed> $users) : mixed
Parameters
$event : IEvent
$users : array<string|int, mixed>
Return values
mixed

Search results