/**
* Defined by Zend_Validate_Interface
*
* Returns true if and only if $value is between min and max options, inclusively
* if inclusive option is true.
*
* @param mixed $value
* @return boolean
*/
public function isValid($value) { $this->
_setValue($value);
if ($this->_inclusive
) { if ($this->_min >
$value ||
$value >
$this->_max
) { $this->
_error(self::NOT_BETWEEN
);
return false;
} } else { if ($this->_min >=
$value ||
$value >=
$this->_max
) { $this->
_error(self::NOT_BETWEEN_STRICT
);
return false;
} }