/** * This method overrides parent's implementation by setting {@link setIsValid IsValid} to true if disabled. * @param boolean whether the validator is enabled. */ public function setEnabled($value) { $value = TPropertyValue::ensureBoolean($value); parent::setEnabled($value); if (!$value) { $this->_isValid = true; } }