Filter/Callback.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Filter
- Version
- $Id$
\Zend_Filter_Callback
Package: Zend_Filter





- Implements
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

string|array $_callback = nullCallback in a call_user_func format
Default value
nullDetails- Type
- string | array
Methods

__construct(mixed $options) : voidConstructor
Parameters
| Name | Type | Description |
|---|---|---|
| $options | mixed | (Optional) Default options for this filter |

filter(mixed $value) : mixedCalls the filter per callback
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $value | mixed | Options for the set callback |
| Type | Description |
|---|---|
| mixed | Result from the filter which was callbacked |

getCallback() : string | arrayReturns the set callback
Returns
| Type | Description |
|---|---|
| string | array | Set callback |

setCallback(\unknown_type $callback, $options = null) : \unknownSets a new callback for this filter
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $callback | \unknown_type | |
| $options |
| Type | Description |
|---|---|
| \unknown |

setOptions(mixed $options) : \Zend_Filter_CallbackSets new default options to the callback filter
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $options | mixed | Default options to set |
| Type | Description |
|---|---|
| \Zend_Filter_Callback |