/** * Get the validation rule (regular expression) * @internal * @return string */ public function getCheck() { $strReturn = ""; if (!empty($this->__validation)) { $strReturn = $this->__validation; } else { $strReturn = Validator::getCheck($this->__field->getType()); } return $strReturn; }
/** * Get the validation rule (regular expression) * @internal * @return string */ public function getCheck() { $strReturn = ""; switch ($this->__field->getType()) { case ValidForm::VFORM_CUSTOM: case ValidForm::VFORM_CUSTOM_TEXT: $strReturn = $this->__validation; break; default: $strReturn = Validator::getCheck($this->__field->getType()); } return $strReturn; }