GenericEvent

class OCP\EventDispatcher\GenericEvent
Class GenericEvent
convenience reimplementation of \Symfony\Component\GenericEvent against
\OCP\EventDispatcher\Event
Source:lib/public/EventDispatcher/GenericEvent.php#45
Parent:OCP\EventDispatcher\Event
Implements:ArrayAccess IteratorAggregate

Properties

protected static property OCP\EventDispatcher\GenericEvent::$subject
Source:lib/public/EventDispatcher/GenericEvent.php#47
Deprecated:22.0.0
protected static property OCP\EventDispatcher\GenericEvent::$arguments
Source:lib/public/EventDispatcher/GenericEvent.php#50
Deprecated:22.0.0

Methods

public OCP\EventDispatcher\GenericEvent::__construct($subject=null, $arguments=[])
Encapsulate an event with $subject and $args.
Source:lib/public/EventDispatcher/GenericEvent.php#58
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::getSubject()
Getter for subject property.
Source:lib/public/EventDispatcher/GenericEvent.php#70
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::getArgument($key)
Get argument by key.
Source:lib/public/EventDispatcher/GenericEvent.php#81
Throws:\InvalidArgumentException if key is not found
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::setArgument($key, $value)
Add argument to event.
Source:lib/public/EventDispatcher/GenericEvent.php#95
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::getArguments()
Getter for all arguments.
Source:lib/public/EventDispatcher/GenericEvent.php#106
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::setArguments($args=[])
Set args property.
Source:lib/public/EventDispatcher/GenericEvent.php#116
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::hasArgument($key)
Has argument.
Source:lib/public/EventDispatcher/GenericEvent.php#127
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::getIterator()
Retrieve an external iterator
Source:lib/public/EventDispatcher/GenericEvent.php#138
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::offsetExists($offset)
Whether a offset exists
Source:lib/public/EventDispatcher/GenericEvent.php#149
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::offsetGet($offset)
Offset to retrieve
Source:lib/public/EventDispatcher/GenericEvent.php#160
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::offsetSet($offset, $value)
Offset to set
Source:lib/public/EventDispatcher/GenericEvent.php#171
Since:18.0.0
Deprecated:22.0.0
public OCP\EventDispatcher\GenericEvent::offsetUnset($offset)
Offset to unset
Source:lib/public/EventDispatcher/GenericEvent.php#182
Since:18.0.0
Deprecated:22.0.0