Fully Qualified Name: | Laminas\Mvc\ResponseSender\SendResponseEvent |
Extends: | Event |
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Event |
contentSent() | SendResponseEvent | |
getName() | Get event name | Event |
getParam() | Get an individual parameter | Event |
getParams() | Get all parameters | Event |
getResponse() | SendResponseEvent | |
getTarget() | Get the event target | Event |
headersSent() | SendResponseEvent | |
propagationIsStopped() | Is propagation stopped? | Event |
setContentSent() | Set content sent for current response | SendResponseEvent |
setHeadersSent() | Set headers sent for current response object | SendResponseEvent |
setName() | Set the event name | Event |
setParam() | Set an individual parameter to a value | Event |
setParams() | Set parameters | Event |
setResponse() | SendResponseEvent | |
setTarget() | Set the event target/context | Event |
stopPropagation() | Stop further event propagation | Event |
Constructor
Accept a target and its parameters.
Parameter Name | Type | Description |
---|---|---|
$name | string | Event |
$target | string|object | |
$params | array|\ArrayAccess |
Returns:
Returns: bool
Get event name
Returns: string
Get an individual parameter
If the parameter does not exist, the $default value will be returned.
Parameter Name | Type | Description |
---|---|---|
$name | string|int | |
$default | mixed |
Returns: mixed
Get all parameters
Returns: array|object|\ArrayAccess
Returns: \Laminas\Stdlib\ResponseInterface
Get the event target
This may be either an object, or the name of a static method.
Returns: string|object
Returns: bool
Is propagation stopped?
Returns: bool
Set content sent for current response
Returns: \SendResponseEvent
Set headers sent for current response object
Returns: \SendResponseEvent
Set the event name
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns:
Set an individual parameter to a value
Parameter Name | Type | Description |
---|---|---|
$name | string|int | |
$value | mixed |
Returns:
Set parameters
Overwrites parameters
Parameter Name | Type | Description |
---|---|---|
$params | array|\ArrayAccess|object |
Returns:
Parameter Name | Type | Description |
---|---|---|
$response | \ResponseInterface |
Returns: \SendResponseEvent
Set the event target/context
Parameter Name | Type | Description |
---|---|---|
$target | null|string|object |
Returns:
Stop further event propagation
Parameter Name | Type | Description |
---|---|---|
$flag | bool |
Returns: