Class Callback

Summary

Fully Qualified Name: Zend\Filter\Callback
Extends: AbstractFilter

Description

Methods

Name Description Defined By
__construct() Callback
__invoke() Invoke filter as a command AbstractFilter
filter() Calls the filter per callback Callback
getCallback() Returns the set callback Callback
getCallbackParams() Get parameters for the callback Callback
getOptions() Retrieve options representing object state AbstractFilter
hasPcreUnicodeSupport() AbstractFilter
setCallback() Sets a new callback for this filter Callback
setCallbackParams() Sets parameters for the callback Callback
setOptions() AbstractFilter

Method Details

__construct()

Parameter Name Type Description
$callbackOrOptions callable|array|\Traversable
$callbackParams array

Returns:

__invoke()

Invoke filter as a command

Proxies to {@link filter()}

Parameter Name Type Description
$value mixed

Returns: mixed

filter()

Calls the filter per callback

Parameter Name Type Description
$value mixed Options

Returns: mixed Result from the filter which was called

getCallback()

Returns the set callback

Returns: callable

getCallbackParams()

Get parameters for the callback

Returns: array

getOptions()

Retrieve options representing object state

Returns: array

hasPcreUnicodeSupport()

Returns: bool

setCallback()

Sets a new callback for this filter

Parameter Name Type Description
$callback callable

Returns: self

setCallbackParams()

Sets parameters for the callback

Parameter Name Type Description
$params array

Returns: self

setOptions()

Parameter Name Type Description
$options array|\Traversable

Returns: self

Top