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 |
__construct(mixed $callback, array $arguments = null
)
mixed
A valid PHP callback
array
Array of arguments for the callback
filter(mixed $value) : string
inherited_from | \Formagic_Filter_Interface::filter() |
---|
mixed
The value to be filtered
string
The filtered value$_arguments : Array
array()
$_callback : mixed