Yann Nave wrote:
>
> I would like to retrieve all data that I've submitted once they
> process filters and validators whereas if the is some errors.
>
> Zend_Filter_Input doesn't have method like that ? :s
>
Using getEscaped() or getUnescaped() will return an array of all valid
filtered and validated values. While getInvalid(), getMissing(), etc.
return the invalid and missing fields.
I do something like this:
$filters = array('*'=> 'Digits');
$validators = array(array('StringLength', 1, 5))
$input = new Zend_Filter_Input($filters, $validators, $paramsToFilter);
if (!$input->isValid) {
$invalidFields = $input->getInvalid();
//process invalid fields.
}
$validFields = $input->getEscaped();
--
View this message in context:
http://www.nabble.com/Zend_Filter_Input-get-all-data-tf4379891s16154.html#a12499993
Sent from the Zend Framework mailing list archive at Nabble.com.