503. Class

503.1. Zend\EventManager\FilterChain

FilterChain: intercepting filter manager

503.1.1. Methods

503.1.1.1. __construct

__construct()

Constructor

Initializes FilterFilterIterator in which filters will be aggregated

503.1.1.2. run

run()

Apply the filters

Begins iteration of the filters.

Parameters:
  • mixed – Object under observation
  • mixed – Associative array of arguments
Return type:

mixed

503.1.1.3. attach

attach()

Connect a filter to the chain

Parameters:
  • callable – PHP Callback
  • int – Priority in the queue at which to execute; defaults to 1 (higher numbers == higher priority)
Return type:

CallbackHandler (to allow later unsubscribe)

Throws :

ExceptionInvalidCallbackException

503.1.1.4. detach

detach()

Detach a filter from the chain

Parameters:CallbackHandler
Return type:bool Returns true if filter found and unsubscribed; returns false otherwise

503.1.1.5. getFilters

getFilters()

Retrieve all filters

Return type:FilterFilterIterator

503.1.1.6. clearFilters

clearFilters()

Clear all filters

Return type:void

503.1.1.7. getResponses

getResponses()

Return current responses

Only available while the chain is still being iterated. Returns the current ResponseCollection.

Return type:null|ResponseCollection

Project Versions

Table Of Contents

Previous topic

502. Function

Next topic

504. Class

This Page