Open Journal Systems
3.3.0
|
Static Public Member Functions | |
static | getAllEvents () |
Protected Attributes | |
$eventDispatcher | |
![]() | |
$body | |
EntityBody decorator that emits events for read and write methods
Definition at line 14 of file IoEmittingEntityBody.php.
Guzzle\Http\IoEmittingEntityBody::addSubscriber | ( | EventSubscriberInterface | $subscriber | ) |
{Add an event subscriber to the dispatcher
EventSubscriberInterface | $subscriber | Event subscriber |
Implements Guzzle\Common\HasDispatcherInterface.
Definition at line 56 of file IoEmittingEntityBody.php.
References Guzzle\Http\IoEmittingEntityBody\getEventDispatcher().
Guzzle\Http\IoEmittingEntityBody::dispatch | ( | $eventName, | |
array | $context = array() |
||
) |
Helper to dispatch Guzzle events and set the event name on the event
string | $eventName | Name of the event to dispatch |
array | $context | Context of the event |
Implements Guzzle\Common\HasDispatcherInterface.
Definition at line 47 of file IoEmittingEntityBody.php.
References Guzzle\Http\IoEmittingEntityBody\getEventDispatcher().
Referenced by Guzzle\Http\IoEmittingEntityBody\read(), and Guzzle\Http\IoEmittingEntityBody\write().
|
static |
Get a list of all of the events emitted from the class
Implements Guzzle\Common\HasDispatcherInterface.
Definition at line 22 of file IoEmittingEntityBody.php.
Guzzle\Http\IoEmittingEntityBody::getEventDispatcher | ( | ) |
Get the EventDispatcher of the request
Implements Guzzle\Common\HasDispatcherInterface.
Definition at line 38 of file IoEmittingEntityBody.php.
References Guzzle\Http\IoEmittingEntityBody\$eventDispatcher.
Referenced by Guzzle\Http\IoEmittingEntityBody\addSubscriber(), and Guzzle\Http\IoEmittingEntityBody\dispatch().
Guzzle\Http\IoEmittingEntityBody::read | ( | $length | ) |
Read data from the stream
int | $length | Up to length number of bytes read. |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 63 of file IoEmittingEntityBody.php.
References Guzzle\Http\IoEmittingEntityBody\dispatch().
Guzzle\Http\IoEmittingEntityBody::setEventDispatcher | ( | EventDispatcherInterface | $eventDispatcher | ) |
{Set the EventDispatcher of the request
EventDispatcherInterface | $eventDispatcher |
Implements Guzzle\Common\HasDispatcherInterface.
Definition at line 31 of file IoEmittingEntityBody.php.
References Guzzle\Http\IoEmittingEntityBody\$eventDispatcher.
Guzzle\Http\IoEmittingEntityBody::write | ( | $string | ) |
Write data to the stream
string | $string | The string that is to be written. |
Reimplemented from Guzzle\Http\AbstractEntityBodyDecorator.
Definition at line 75 of file IoEmittingEntityBody.php.
References Guzzle\Http\IoEmittingEntityBody\dispatch().
|
protected |
Definition at line 20 of file IoEmittingEntityBody.php.
Referenced by Guzzle\Http\IoEmittingEntityBody\getEventDispatcher(), and Guzzle\Http\IoEmittingEntityBody\setEventDispatcher().