Class Zend_Validate_Between

Description

Implements interfaces:

  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Validate/Between.php (line 36)


	
			
Variable Summary
 boolean $_inclusive
 mixed $_max
 array $_messages
 mixed $_min
Method Summary
 void __construct (mixed $min, mixed $max, [boolean $inclusive = true])
 boolean getInclusive ()
 mixed getMax ()
 array getMessages ()
 mixed getMin ()
 boolean isValid (mixed $value)
 Zend_Validate_Between setInclusive (boolean $inclusive)
Variables
boolean $_inclusive (line 60)

Whether to do inclusive comparisons, allowing equivalence to min and/or max

If false, then strict comparisons are done, and the value may equal neither the min or max options

  • access: protected
mixed $_max (line 50)

Maximum value

  • access: protected
array $_messages = array() (line 67)

Array of validation failure messages

  • access: protected
mixed $_min (line 43)

Minimum value

  • access: protected
Methods
Constructor __construct (line 77)

Sets validator options

  • access: public
void __construct (mixed $min, mixed $max, [boolean $inclusive = true])
  • mixed $min
  • mixed $max
  • boolean $inclusive
getInclusive (line 133)

Returns the inclusive option

  • access: public
boolean getInclusive ()
getMax (line 111)

Returns the max option

  • access: public
mixed getMax ()
getMessages (line 183)

Defined by Zend_Validate_Interface

Returns array of validation failure messages

  • access: public
array getMessages ()

Implementation of:
Zend_Validate_Interface::getMessages()
Returns an array of messages that explain why a previous isValid() call returned false
getMin (line 89)

Returns the min option

  • access: public
mixed getMin ()
isValid (line 159)

Defined by Zend_Validate_Interface

Returns true if and only if $value is between min and max options, inclusively if inclusive option is true.

  • access: public
boolean isValid (mixed $value)
  • mixed $value

Implementation of:
Zend_Validate_Interface::isValid()
Returns true if and only if $value meets the validation requirements
setInclusive (line 144)

Sets the inclusive option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Between setInclusive (boolean $inclusive)
  • boolean $inclusive
setMax (line 122)

Sets the max option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Between setMax (mixed $max)
  • mixed $max
setMin (line 100)

Sets the min option

  • return: Provides a fluent interface
  • access: public
Zend_Validate_Between setMin (mixed $min)
  • mixed $min

Documentation generated on Sat, 05 May 2007 11:52:35 -0700 by phpDocumentor 1.3.2