Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Filter_Callback Class Reference

Public Member Functions

 __construct ($options)
 Constructor.
 
 getCallback ()
 Returns the set callback.
 
 setCallback ($callback, $options=null)
 Sets a new callback for this filter.
 
 getOptions ()
 Returns the set default options.
 
 setOptions ($options)
 Sets new default options to the callback filter.
 
 filter ($value)
 Calls the filter per callback.
 

Protected Attributes

 $_callback = null
 
 $_options = null
 

Constructor & Destructor Documentation

__construct (   $options)

Constructor.

Parameters
string | array$callbackCallback in a call_user_func format
mixed$options(Optional) Default options for this filter

Member Function Documentation

filter (   $value)

Calls the filter per callback.

Parameters
mixed$valueOptions for the set callback
Returns
mixed Result from the filter which was callbacked

Implements Zend_Filter_Interface.

getCallback ( )

Returns the set callback.

Returns
string|array Set callback
getOptions ( )

Returns the set default options.

Returns
mixed
setCallback (   $callback,
  $options = null 
)

Sets a new callback for this filter.

Parameters
unknown_type$callback
Returns
unknown
setOptions (   $options)

Sets new default options to the callback filter.

Parameters
mixed$optionsDefault options to set
Returns
Zend_Filter_Callback

Member Data Documentation

$_callback = null
protected
$_options = null
protected