Aaaah, thank you for pointing out what was too obvious for me to see (-:

On Dec 28, 2007 3:31 PM, Eric Coleman <[EMAIL PROTECTED]> wrote:

>
> $row->setFromArray($input->getUnescaped())->save();
>
> Or, you can also call $input->getEscaped() to get an array of escaped
> values...
>
> You'll probably want to save the unescaped versions though ;)
>
> Regards,
> Eric
>
> On Dec 28, 2007, at 2:04 PM, David Mintz wrote:
>
> > Any way to get all the filtered/validated data out of your
> > Zend_Filter_Input
> > object in one shot?
> >
> > It would be nice to say
> >
> > $input = new Zend_Filter_Input($filters, $validators,$data);
> >
> >
> > if ($input->isValid()) {
> >
> >    $row->setFromArray($input->toArray())->save();
> >
> > }
> >
> > and be done with it. It seems that all we need in Zend_Input_Filter is
> >
> > function toArray() { return this->_data; }
> >
>
>
>


-- 
David Mintz
http://davidmintz.org/

The subtle source is clear and bright
The tributary streams flow through the darkness

Reply via email to