public function getValidationTarget()
{
if (($id = $this->getControlToValidate()) !== '' && ($control = $this->findControl($id)) !== null) {
return $control;
} else {
if (($id = $this->getControlToValidate()) !== '') {
throw new TInvalidDataTypeException('basevalidator_validatable_required', get_class($this));
} else {
return null;
}
}
}