PHP Class Prado\Web\UI\WebControls\TReCaptcha2Validator

TReCaptcha2Validator validates a reCAPTCHA represented by a {@link TReCaptcha} control. The input control fails validation if th user did not pass the humanity test. To use TReCaptcha2Validator, specify the {@link setCaptchaControl CaptchaControl} to be the ID path of the {@link TReCaptcha} control.
Since: 3.3.1
Author: Cristian Camilo Naranjo Valencia
Inheritance: extends TBaseValidator
Mostrar archivo Open project: pradosoft/prado

Protected Properties

Property Type Description
$_isvalid

Public Methods

Method Description
getClientScriptOptions ( )
getEnableClientScript ( )
onPreRender ( $param )

Protected Methods

Method Description
evaluateIsValid ( ) : boolean This method overrides the parent's implementation.
getCaptchaControl ( )
getClientClassName ( )

Method Details

evaluateIsValid() protected method

The validation succeeds if the input control has the same value as the one displayed in the corresponding RECAPTCHA control.
protected evaluateIsValid ( ) : boolean
return boolean whether the validation succeeds

getCaptchaControl() protected method

protected getCaptchaControl ( )

getClientClassName() protected method

protected getClientClassName ( )

getClientScriptOptions() public method

getEnableClientScript() public method

onPreRender() public method

public onPreRender ( $param )

Property Details

$_isvalid protected_oe property

protected $_isvalid