Data filtering with callback.
More...
Detailed Description
Data filtering with callback.
- See also:
- __construct for details
Constructor & Destructor Documentation
Filter_Callback::__construct |
( |
$ |
callback, |
|
|
$ |
expected = true |
|
) |
| |
- Parameters:
-
callback | $callback | Callable string or array.
|
mixed | $expected | Expected result for the filter to pass |
Member Function Documentation
Filter_Callback::matchFilter |
( |
$ |
data, |
|
|
$ |
key = null , |
|
|
$ |
iterator = null , |
|
|
array $ |
options = array() |
|
) |
| |
Returns true if data has passed the filter.
- Returns:
- boolean
Implements Filter_IFilter.
Field Documentation
Filter_Callback::$callback [protected] |
Filter_Callback::$expected [protected] |
The documentation for this class was generated from the following file: