Arrays in Zend_Input_Filter

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Arrays in Zend_Input_Filter

Jurriën Stutterheim

Zend_Input_Filter is a very usefull class, but I miss one filter:  
If I submit a form like this:

<input type="hidden" name="somedata[firstkey]" value="firstvalue" />
<input type="text" name="somedata[secondkey]" value="secondvalue" />

It gives me an array like this as $_POST['somedata']

        'firstkey' => 'firstvalue',
        'secondkey' => 'secondvalue'

At the moment, the only way to get this through Zend_Input_Filter is  
with getRaw().
It would be very usefull to have getArray(), testArray() and maybe  
inArray() or such.


Jurriën Stutterheim