Prado\Web\UI\WebControls\TReCaptchaValidator::evaluateIsValid PHP 메소드

evaluateIsValid() 보호된 메소드

The validation succeeds if the input control has the same value as the one displayed in the corresponding RECAPTCHA control.
protected evaluateIsValid ( ) : boolean
리턴 boolean whether the validation succeeds
    protected function evaluateIsValid()
    {
        // check validity only once (if trying to evaulate multiple times, all redundant checks would fail)
        if (is_null($this->_isvalid)) {
            $control = $this->getCaptchaControl();
            $this->_isvalid = $control->validate();
        }
        return $this->_isvalid == true;
    }