Nextcloud PHP API (master)

AbstractNodeEvent extends Event
in package
implements IWebhookCompatibleEvent

AbstractYes

Base event class for the event dispatcher service

Tags
since
20.0.0

Table of Contents

Interfaces

IWebhookCompatibleEvent
Interface for events which can be listened to by webhooks

Properties

$node  : Node
$propagationStopped  : bool

Methods

__construct()  : mixed
Compatibility constructor
getNode()  : Node
getWebhookSerializable()  : array<string|int, mixed>
Return data to be serialized and sent to the webhook. Will be serialized using json_encode.
isPropagationStopped()  : bool
{@inheritDoc}
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(Node $node) : mixed
Parameters
$node : Node
Tags
since
20.0.0

getWebhookSerializable()

Return data to be serialized and sent to the webhook. Will be serialized using json_encode.

public getWebhookSerializable() : array<string|int, mixed>
Tags
since
30.0.0
Return values
array<string|int, mixed>

isPropagationStopped()

{@inheritDoc}

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

stopPropagation()

Stops the propagation of the event to further event listeners

public stopPropagation() : void
Tags
since
22.0.0

        
On this page

Search results