Class Zend_Validate_Between

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

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

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 (array|Zend_Config $options)
 boolean getInclusive ()
 mixed getMax ()
 mixed getMin ()
 boolean isValid (mixed $value)
 Zend_Validate_Between setInclusive (boolean $inclusive)
Variables
boolean $_inclusive (line 87)

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 nor max options

  • access: protected
mixed $_max (line 77)

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

Validation failure message template definitions

  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates
Validation failure message template definitions
array $_messageVariables = array(
'min' => '_min',
'max' => '_max'
)
(line 60)

Additional variables available for validation failure messages

  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageVariables
Additional variables available for validation failure messages
mixed $_min (line 70)

Minimum value

  • access: protected

Inherited Variables

Inherited from Zend_Validate_Abstract

Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
Methods
Constructor __construct (line 99)

Sets validator options

Accepts the following option keys: 'min' => scalar, minimum border 'max' => scalar, maximum border 'inclusive' => boolean, inclusive border values

  • access: public
void __construct (array|Zend_Config $options)
getInclusive (line 180)

Returns the inclusive option

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

Returns the max option

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

Returns the min option

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

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

Sets the inclusive option

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

Sets the max option

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

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::getDefaultTranslator()
 Zend_Validate_Abstract::getErrors()
 Zend_Validate_Abstract::getMessageLength()
 Zend_Validate_Abstract::getMessages()
 Zend_Validate_Abstract::getMessageTemplates()
 Zend_Validate_Abstract::getMessageVariables()
 Zend_Validate_Abstract::getObscureValue()
 Zend_Validate_Abstract::getTranslator()
 Zend_Validate_Abstract::hasDefaultTranslator()
 Zend_Validate_Abstract::hasTranslator()
 Zend_Validate_Abstract::setDefaultTranslator()
 Zend_Validate_Abstract::setDisableTranslator()
 Zend_Validate_Abstract::setMessage()
 Zend_Validate_Abstract::setMessageLength()
 Zend_Validate_Abstract::setMessages()
 Zend_Validate_Abstract::setObscureValue()
 Zend_Validate_Abstract::setTranslator()
 Zend_Validate_Abstract::translatorIsDisabled()
 Zend_Validate_Abstract::_createMessage()
 Zend_Validate_Abstract::_error()
 Zend_Validate_Abstract::_setValue()
 Zend_Validate_Abstract::__get()
Class Constants
NOT_BETWEEN = 'notBetween' (line 38)

Validation failure message key for when the value is not between the min and max, inclusively

NOT_BETWEEN_STRICT = 'notBetweenStrict' (line 43)

Validation failure message key for when the value is not strictly between the min and max

Documentation generated on Mon, 21 Jun 2010 15:09:00 -0400 by phpDocumentor 1.4.3