public getValidationTarget ( ) : TControl | ||
return | TControl | control to be validated. Null if no control is found. |
public function getValidationTarget()
{
if (($id = $this->getControlToValidate()) !== '' && ($control = $this->findControl($id)) !== null) {
return $control;
} else {
throw new TConfigurationException('basevalidator_controltovalidate_invalid', get_class($this));
}
}