Uses a valid PHP callback fot the value transformation.

Takes two constructor arguments: One the callback itself, two the arguments for the callback.

package Formagic\Filter
author Florian Sonnenburg
since 2009 First time introduced

 Methods

Constructor

__construct(mixed $callback, array $arguments = null

Parameters

$callback

mixed

A valid PHP callback

$arguments

array

Array of arguments for the callback

Filters the value using the PHP callback.

filter(mixed $value) : string
inherited_from \Formagic_Filter_Interface::filter()

Parameters

$value

mixed

The value to be filtered

Returns

stringThe filtered value

 Properties

 

Array of arguments for the callback

$_arguments : Array

Default

array()
 

A valid PHP callback

$_callback : mixed

Default