Zend_Validate-Set.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.validate.set" xmlns:xi="http://www.w3.org/2001/XInclude">
  4. <title>Standard Validation Classes</title>
  5. <para>
  6. Zend Framework comes with a standard set of validation classes, which are ready for you to
  7. use.
  8. </para>
  9. <sect2 id="zend.validate.set.alnum">
  10. <title>Alnum</title>
  11. <para>
  12. Returns <constant>TRUE</constant> if and only if <varname>$value</varname> contains only
  13. alphabetic and digit characters. This validator includes an option to also consider
  14. white space characters as valid.
  15. </para>
  16. <note>
  17. <para>
  18. The alphabetic characters mean characters that makes up words in each language.
  19. However, the English alphabet is treated as the alphabetic characters in following
  20. languages: Chinese, Japanese, Korean. The language is specified by
  21. <classname>Zend_Locale</classname>.
  22. </para>
  23. </note>
  24. </sect2>
  25. <sect2 id="zend.validate.set.alpha">
  26. <title>Alpha</title>
  27. <para>
  28. Returns <constant>TRUE</constant> if and only if <varname>$value</varname> contains only
  29. alphabetic characters. This validator includes an option to also consider white space
  30. characters as valid.
  31. </para>
  32. </sect2>
  33. <xi:include href="Zend_Validate-Barcode.xml" />
  34. <xi:include href="Zend_Validate-Between.xml" />
  35. <xi:include href="Zend_Validate-Callback.xml" />
  36. <xi:include href="Zend_Validate-CreditCard.xml" />
  37. <sect2 id="zend.validate.set.ccnum">
  38. <title>Ccnum</title>
  39. <note>
  40. <para>
  41. The <classname>Ccnum</classname> validator has been deprecated in favor of the
  42. <classname>CreditCard</classname> validator. For security reasons you should use
  43. CreditCard instead of Ccnum.
  44. </para>
  45. </note>
  46. </sect2>
  47. <sect2 id="zend.validate.set.date">
  48. <title>Date</title>
  49. <para>
  50. Returns <constant>TRUE</constant> if <varname>$value</varname> is a valid date of the
  51. format 'YYYY-MM-DD'. If the optional <property>locale</property> option is set then the
  52. date will be validated according to the set locale. And if the optional
  53. <property>format</property> option is set this format is used for the validation. for
  54. details about the optional parameters see <link
  55. linkend="zend.date.others.comparison.table">Zend_Date::isDate()</link>.
  56. </para>
  57. </sect2>
  58. <xi:include href="Zend_Validate-Db.xml" />
  59. <sect2 id="zend.validate.set.digits">
  60. <title>Digits</title>
  61. <para>
  62. Returns <constant>TRUE</constant> if and only if <varname>$value</varname> only contains
  63. digit characters.
  64. </para>
  65. </sect2>
  66. <xi:include href="Zend_Validate-EmailAddress.xml" />
  67. <sect2 id="zend.validate.set.float">
  68. <title>Float</title>
  69. <para>
  70. Returns <constant>TRUE</constant> if and only if <varname>$value</varname> is a
  71. floating-point value. Since Zend Framework 1.8 this validator takes into account the
  72. actual locale from browser, environment or application wide set locale. You can of
  73. course use the get/setLocale accessors to change the used locale or give it while
  74. creating a instance of this validator.
  75. </para>
  76. </sect2>
  77. <xi:include href="Zend_Validate-GreaterThan.xml" />
  78. <xi:include href="Zend_Validate-Hex.xml" />
  79. <xi:include href="Zend_Validate-Hostname.xml" />
  80. <xi:include href="Zend_Validate-Iban.xml" />
  81. <xi:include href="Zend_Validate-Identical.xml" />
  82. <xi:include href="Zend_Validate-InArray.xml" />
  83. <xi:include href="Zend_Validate-Int.xml" />
  84. <xi:include href="Zend_Validate-Ip.xml" />
  85. <xi:include href="Zend_Validate-Isbn.xml" />
  86. <xi:include href="Zend_Validate-LessThan.xml" />
  87. <xi:include href="Zend_Validate-NotEmpty.xml" />
  88. <xi:include href="Zend_Validate-PostCode.xml" />
  89. <xi:include href="Zend_Validate-Regex.xml" />
  90. <xi:include href="Zend_Validate-Sitemap.xml" />
  91. <xi:include href="Zend_Validate-StringLength.xml" />
  92. </sect1>
  93. <!--
  94. vim:se ts=4 sw=4 et:
  95. -->