protected evaluateIsValid ( ) : boolean | ||
return | boolean | whether the validation succeeds |
protected function evaluateIsValid()
{
$control = $this->getValidationTarget();
if ($control instanceof TListControl) {
return $this->validateListControl($control);
} else {
if ($control instanceof TRadioButton && strlen($control->getGroupName()) > 0) {
return $this->validateRadioButtonGroup($control);
} else {
return $this->validateStandardControl($control);
}
}
}