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, provides an object accessor through the implementation of magic method:

$ oneField = $ input-> One field name

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -