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)
mixedA valid PHP callback
arrayArray of arguments for the callback
filter(mixed $value) : string
| inherited_from | \Formagic_Filter_Interface::filter() |
|---|
mixedThe value to be filtered
stringThe filtered value$_arguments : Array
array()$_callback : mixed