php - Is there any way to output the filtered data from Zend_Filter_Input? -
Is there a way to output all the filtered data from the class Zend_Filter_Input?
Zend_Filter_Input
provides several methods for retrieving filtered and valid data First of all, you can retrieve an associative array of all areas:
$ data = $ input-> GetEscaped (); // Retrieve all data, Zend_Filter_HtmlEntities $ data = $ input-> Escaped with getUnescaped (); // Retrieve all data, not saved.
You can also get an associative array of parts of the data, method names are very clear:
$ invalidFields = $ input-> ; GetInvalid (); // fields that fail in validation $$ missingFields = $ input-> GetMissing (); // field that was declared as 'required' in 'metacommand', but input $ unknownFields = $ input- & gt; GetUnknown (); // fields which were not declared in validator rules but were present in the input.
Above all of this,
$ oneField = $ input-> One field name
Comments
Post a Comment