Class Zend_Validate_Between

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

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

Zend_Validate_Abstract
   |
   --Zend_Validate_Between
Class Constant Summary
 NOT_BETWEEN = 'notBetween'
 NOT_BETWEEN_STRICT = 'notBetweenStrict'
Variable Summary
 boolean $_inclusive
 mixed $_max
 mixed $_min
Method Summary
 void __construct (mixed $min, mixed $max, [boolean $inclusive = true])
 boolean getInclusive ()
 mixed getMax ()
 mixed getMin ()
 boolean isValid (mixed $value)
 Zend_Validate_Between setInclusive (boolean $inclusive)
Variables
boolean $_inclusive (line 80)

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 70)

Maximum value

  • access: protected
array $_messageTemplates = array(
self::NOT_BETWEEN => "'%value%' is not between '%min%' and '%max%', inclusively",
self::NOT_BETWEEN_STRICT => "'%value%' is not strictly between '%min%' and '%max%'"
)
(line 45)
  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates
array $_messageVariables = array(
'min' => '_min',
'max' => '_max'
)
(line 53)
  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageVariables
mixed $_min (line 63)

Minimum value

  • access: protected

Inherited Variables

Inherited from Zend_Validate_Abstract

Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_value
Methods
Constructor __construct (line 90)

Sets validator options

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

Returns the inclusive option

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

Returns the max option

  • access: public
mixed getMax ()
getMin (line 102)

Returns the min option

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

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
setInclusive (line 157)

Sets the inclusive option

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

Sets the max option

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

Sets the min option

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

Inherited Methods

Inherited From Zend_Validate_Abstract

 Zend_Validate_Abstract::getErrors()
 Zend_Validate_Abstract::getMessages()
 Zend_Validate_Abstract::setMessage()
 Zend_Validate_Abstract::setMessages()
 Zend_Validate_Abstract::_createMessage()
 Zend_Validate_Abstract::_error()
 Zend_Validate_Abstract::_setValue()
 Zend_Validate_Abstract::__get()
Class Constants
NOT_BETWEEN = 'notBetween' (line 39)
NOT_BETWEEN_STRICT = 'notBetweenStrict' (line 40)

Documentation generated on Sun, 27 May 2007 23:21:00 -0700 by phpDocumentor 1.3.2