Nextcloud PHP API (master)

CommentsEvent extends Event
in package

Class CommentsEvent

Tags
since
9.0.0

Table of Contents

Constants

EVENT_ADD  = 'OCP\\Comments\\ICommentsManager::addComment'
EVENT_DELETE  = 'OCP\\Comments\\ICommentsManager::deleteComment'
EVENT_PRE_UPDATE  = 'OCP\\Comments\\ICommentsManager::preUpdateComment'
EVENT_UPDATE  = 'OCP\\Comments\\ICommentsManager::updateComment'

Properties

$comment  : IComment
$event  : string
$propagationStopped  : bool

Methods

__construct()  : mixed
DispatcherEvent constructor.
getComment()  : IComment
getEvent()  : string
isPropagationStopped()  : bool
{@inheritDoc}
stopPropagation()  : void
Stops the propagation of the event to further event listeners

Constants

EVENT_ADD

public mixed EVENT_ADD = 'OCP\\Comments\\ICommentsManager::addComment'
Tags
since
11.0.0
deprecated
22.0.0

EVENT_DELETE

public mixed EVENT_DELETE = 'OCP\\Comments\\ICommentsManager::deleteComment'
Tags
since
11.0.0
deprecated
22.0.0

EVENT_PRE_UPDATE

public mixed EVENT_PRE_UPDATE = 'OCP\\Comments\\ICommentsManager::preUpdateComment'
Tags
since
11.0.0
deprecated
22.0.0

EVENT_UPDATE

public mixed EVENT_UPDATE = 'OCP\\Comments\\ICommentsManager::updateComment'
Tags
since
11.0.0
deprecated
22.0.0

Properties

$propagationStopped

private bool $propagationStopped = false
Tags
since
22.0.0

Methods

__construct()

DispatcherEvent constructor.

public __construct(string $event, IComment $comment) : mixed
Parameters
$event : string
$comment : IComment
Tags
since
9.0.0

getEvent()

public getEvent() : string
Tags
since
9.0.0
Return values
string

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