Zend\Mvc\ResponseSender\SendResponseEvent
Synopsis
class SendResponseEvent
extends Event
{
- // constants
- const EVENT_SEND_RESPONSE = 'sendResponse';
- // members
- protected string $name;
- protected ResponseInterface $response;
- protected array $headersSent;
- protected array $contentSent;
- // Inherited members from Event
- protected string $name;
- protected string|object $target;
- protected array|ArrayAccess|object $params;
- protected bool $stopPropagation;
- // methods
- public SendResponseEvent setResponse()
- public ResponseInterface getResponse()
- public SendResponseEvent setContentSent()
- public bool contentSent()
- public SendResponseEvent setHeadersSent()
- public bool headersSent()
- // Inherited methods from Event
- public void __construct()
- public string getName()
- public string|object getTarget()
- public Event setParams()
- public array|object|ArrayAccess getParams()
- public mixed getParam()
- public Event setName()
- public Event setTarget()
- public Event setParam()
- public void stopPropagation()
- public bool propagationIsStopped()
Hierarchy
Extends
Constants
Name | Value |
---|---|
EVENT_SEND_RESPONSE | 'sendResponse' |
Members
protected
- $contentSent — array
- $headersSent — array
- $name — string
- $name — string
- $params — Zend\EventManager\array|ArrayAccess|object
- $response — Zend\Stdlib\ResponseInterface
- $stopPropagation — Zend\EventManager\bool
- $target — Zend\EventManager\string|object
Methods
public
- contentSent()
- getResponse()
- headersSent()
- setContentSent() — Set content sent for current response
- setHeadersSent() — Set headers sent for current response object
- setResponse()
Inherited from Zend\EventManager\Event
public
- getName() — Get event name
- getParam() — Get an individual parameter
- getParams() — Get all parameters
- getTarget() — Get the event target
- propagationIsStopped() — Is propagation stopped?
- setName() — Set the event name
- setParam() — Set an individual parameter to a value
- setParams() — Set parameters
- setTarget() — Set the event target/context
- stopPropagation() — Stop further event propagation