[10.10.2006 10:24] Kevin McArthur wrote:
Once done, you'll be able to use zfi objects as you would an array
anyway. The biggest problem is determining what rule is applied by
default.
I'd say none or make the value empty. If you look at the use case
from gonyuu - it only returns the keys (but I wouldn't name the
method toArray()). So you're able to iterate over the source and
filter the input as needed.
The other option would be a default filter you can set. Like in:
$filter->setDefaultFilter('getAlnum');
foreach($filter as $k => $v) { ... }
nico
use case:
foreach($zendFilter->toArray() as $key) {
echo $zendFilter->getAlnum($key);
}