Nextcloud PHP API (master)

ContactInteractedWithEvent extends Event
in package

An event that allows apps to notify other components about an interaction between two users. This can be used to build better recommendations and suggestions in user interfaces.

Emitters should add at least one identifier (uid, email, federated cloud ID) of the recipient of the interaction.

Tags
since
19.0.0

Table of Contents

Properties

$actor  : IUser
$email  : string|null
$federatedCloudId  : string|null
$propagationStopped  : bool
$uid  : string|null

Methods

__construct()  : mixed
Compatibility constructor
getActor()  : IUser
getEmail()  : string|null
getFederatedCloudId()  : string|null
getUid()  : string|null
isPropagationStopped()  : bool
{@inheritDoc}
setEmail()  : self
Set the email of the person interacted with, if known
setFederatedCloudId()  : self
Set the federated cloud of the person interacted with, if known
setUid()  : self
Set the uid of the person interacted with, if known
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Properties

$propagationStopped

private bool $propagationStopped = false
Tags
since
22.0.0

Methods

__construct()

Compatibility constructor

public __construct(IUser $actor) : mixed
Parameters
$actor : IUser

the user who started the interaction

Tags
since
19.0.0

isPropagationStopped()

{@inheritDoc}

public isPropagationStopped() : bool
Tags
since
22.0.0
see
StoppableEventInterface
Return values
bool

setEmail()

Set the email of the person interacted with, if known

public setEmail(string $email) : self
Parameters
$email : string
Tags
since
19.0.0
Return values
self

setFederatedCloudId()

Set the federated cloud of the person interacted with, if known

public setFederatedCloudId(string $federatedCloudId) : self
Parameters
$federatedCloudId : string
Tags
since
19.0.0
Return values
self

setUid()

Set the uid of the person interacted with, if known

public setUid(string $uid) : self
Parameters
$uid : string
Tags
since
19.0.0
Return values
self

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results