CommentsEvent
extends Event
in package
Class CommentsEvent
Tags
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
EVENT_DELETE
public
mixed
EVENT_DELETE
= 'OCP\Comments\ICommentsManager::deleteComment'
Tags
EVENT_PRE_UPDATE
public
mixed
EVENT_PRE_UPDATE
= 'OCP\Comments\ICommentsManager::preUpdateComment'
Tags
EVENT_UPDATE
public
mixed
EVENT_UPDATE
= 'OCP\Comments\ICommentsManager::updateComment'
Tags
Properties
$comment
protected
IComment
$comment
$event
protected
string
$event
$propagationStopped
private
bool
$propagationStopped
= false
Tags
Methods
__construct()
DispatcherEvent constructor.
public
__construct(string $event, IComment $comment) : mixed
Parameters
- $event : string
- $comment : IComment
Tags
getComment()
public
getComment() : IComment
Tags
Return values
ICommentgetEvent()
public
getEvent() : string
Tags
Return values
stringisPropagationStopped()
{@inheritDoc}
public
isPropagationStopped() : bool
Tags
Return values
boolstopPropagation()
Stops the propagation of the event to further event listeners
public
stopPropagation() : void