Where can I find a list of all Zend_Form validators and filters?

I am learning Zend Framework using their guide on framework.zend.com.

Where can I find a complete list of all validators and filters that can be used in Zend_Form?

Using Zend Framework 1.11.6.

Example:

filters: 'StringTrim' validators: 'EmailAddress' 

Thank you!

+7
source share
3 answers

Check the following paths for the Zend Framework installation folder:

 /Zend/Validate/* /Zend/Filter/* 

Or check the relevant manual pages:

http://framework.zend.com/manual/en/zend.filter.html

http://framework.zend.com/manual/en/zend.validate.html

+11
source

You can use all shipped filters and validators with a zend form, as well as with regular ones.

+2
source

Use for anyone who is a little confused is to take the last part of any Zend_Validate_XYZ and use XYZ as a string in any addValidator chain, for example: → addValidator ('XYZ'), so for example, to check the email address use the Zend_Validate_EmailAddress class or → addValidator ('EmailAddress') in item variable

Do not forget that the second parameter is whether the failure should interrupt the chain. True breaks the chain, False - no. So, if we want to check only the Alpha field, then the AlphaNumeric field, but NOT break if the Alpha field! IsValid (), then: -> addValidator ('Alpha', FALSE) -> addValidator ('AlNum', TRUE)

0
source

All Articles