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
Afficher le fichier Open project: pradosoft/prado

Protected Properties

Свойство Type Description
$_isvalid

Méthodes publiques

Méthode Description
getClientScriptOptions ( )
getEnableClientScript ( )
onPreRender ( $param )

Méthodes protégées

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

Method Details

evaluateIsValid() protected méthode

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

getCaptchaControl() protected méthode

protected getCaptchaControl ( )

getClientClassName() protected méthode

protected getClientClassName ( )

getClientScriptOptions() public méthode

getEnableClientScript() public méthode

onPreRender() public méthode

public onPreRender ( $param )

Property Details

$_isvalid protected_oe property

protected $_isvalid