1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect2 id="zend.validate.set.greaterthan">
4 <title>GreaterThan</title>
7 <classname>Zend_Validate_GreaterThan</classname> allows you to validate if a given value is
8 greater than a minimum border value.
12 <title>Zend_Validate_GreaterThan supports only number validation</title>
15 It should be noted that <classname>Zend_Validate_GreaterThan</classname> supports only
16 the validation of numbers. Strings or dates can not be validated with this validator.
20 <sect3 id="zend.validate.set.greaterthan.options">
21 <title>Supported options for Zend_Validate_GreaterThan</title>
24 The following options are supported for
25 <classname>Zend_Validate_GreaterThan</classname>:
31 <emphasis><property>min</property></emphasis>: Sets the minimum allowed value.
37 <sect3 id="zend.validate.set.greaterthan.basic">
38 <title>Basic usage</title>
41 To validate if a given value is greater than a defined border simply use the following
45 <programlisting language="php"><![CDATA[
46 $valid = new Zend_Validate_GreaterThan(array('min' => 10));
48 $return = $valid->isValid($value);
53 The above example returns <constant>TRUE</constant> for all values which are equal to 10