Prado\Web\UI\WebControls\TCaptchaValidator::findCaptchaControl PHP Метод

findCaptchaControl() защищенный Метод

protected findCaptchaControl ( ) : TCaptchaControl
Результат TCaptchaControl the CAPTCHA control to be validated against
    protected function findCaptchaControl()
    {
        if (($id = $this->getCaptchaControl()) === '') {
            throw new TConfigurationException('captchavalidator_captchacontrol_required');
        } else {
            if (($control = $this->findControl($id)) === null) {
                throw new TConfigurationException('captchavalidator_captchacontrol_inexistent', $id);
            } else {
                if (!$control instanceof TCaptcha) {
                    throw new TConfigurationException('captchavalidator_captchacontrol_invalid', $id);
                } else {
                    return $control;
                }
            }
        }
    }