Interface for intercepting filter chains

category Zend
package Zend_EventManager

 Methods

Attach an intercepting filter

attach(\Zend\EventManager\Filter\callable $callback) : \Zend\Stdlib\CallbackHandler

Parameters

$callback

\Zend\EventManager\Filter\callable

Returns

Clear all filters

clearFilters() : void

Detach an intercepting filter

detach(\Zend\Stdlib\CallbackHandler $filter) : bool

Parameters

Returns

bool

Get all intercepting filters

getFilters() : array

Returns

array

Get all filter responses

getResponses() : \Zend\EventManager\ResponseCollection

Execute the filter chain

run(string | object $context, array $params) : mixed

Parameters

$context

stringobject

$params

array

Returns

mixed