* @package tao */ class tao_helpers_form_validators_Integer extends tao_helpers_form_validators_Numeric { // --- ASSOCIATIONS --- // --- ATTRIBUTES --- // --- OPERATIONS --- /** * Short description of method evaluate * * @access public * @author Jehan Bihin, * @param values * @return boolean */ public function evaluate($values) { $returnValue = (bool) false; if ($values == intval($values)) { $returnValue = parent::evaluate($values); } else { $returnValue = false; $this->setMessage(__('The value of this field must be an integer')); } return (bool) $returnValue; } }