Nextcloud PHP API (master)

BeforeCommentUpdatedEvent extends CommentsEvent
in package

FinalYes

Class BeforeCommentAddedEvent

Tags
since
33.0.0
Attributes
#[Consumable]
$since: '33.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

Methods

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

Constants

EVENT_ADD

Use \OCP\Comments\Events\CommentAddedEvent instead.

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

EVENT_DELETE

Use \OCP\Comments\Events\CommentDeletedEvent instead.

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

EVENT_PRE_UPDATE

Use \OCP\Comments\Events\BeforeCommentUpdatedEvent instead.

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

EVENT_UPDATE

Use \OCP\Comments\Events\CommentUpdatedEvent instead.

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

Properties

Methods

getEvent()

public getEvent() : string
Tags
since
9.0.0
depreacted

Since 33.0.0 use instanceof CommentAddedEvent, CommentRemovedEvent, CommentUpdatedEvent or BeforeCommentUpdatedEvent instead.

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