KWeb  6.4
Filter_Callback Class Reference

Data filtering with callback. More...

Inheritance diagram for Filter_Callback:
Filter_Abstract Filter_IFilter

Public Member Functions

 __construct ($callback, $expected=true)
 matchFilter ($data, $key=null, $iterator=null, array $options=array())
 Returns true if data has passed the filter.

Protected Attributes

 $callback
 $expected

Detailed Description

Data filtering with callback.

See also:
__construct for details

Constructor & Destructor Documentation

Filter_Callback::__construct ( $  callback,
$  expected = true 
)
Parameters:
callback$callbackCallable string or array.
mixed$expectedExpected 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: