Uses a valid PHP callback fot the value transformation.
Takes two constructor arguments: One the callback itself, two the arguments for the callback.
| category | Formagic |
|---|---|
| package | Filter |
| author | Florian Sonnenburg |
| copyright | Copyright (c) 2009 Florian Sonnenburg |
| version | $Id: Callback.php 160 2012-04-02 20:18:14Z meweasle $ |
__construct(mixed $callback, array $arguments)
mixedA valid PHP callback
arrayArray of arguments for the callback
filter(mixed $value) : string
mixedThe value to be filtered
stringThe filtered value$_arguments : Array
$_callback : mixed