PHP Class Prado\Web\UI\WebControls\TReCaptchaValidator

TReCaptchaValidator validates user input against a reCAPTCHA represented by a {@link TReCaptcha} control. The input control fails validation if its value is not the same as the token displayed in reCAPTCHA. Note, if the user does not enter any thing, it is still considered as failing the validation. To use TReCaptchaValidator, specify the {@link setCaptchaControl CaptchaControl} to be the ID path of the {@link TReCaptcha} control.
Since: 3.2
Author: Bérczi Gábor ([email protected])
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 ( ) : string Gets the name of the javascript class responsible for performing validation for this control.

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

This method overrides the parent implementation.
protected getClientClassName ( ) : string
return string the javascript class name

getClientScriptOptions() public method

getEnableClientScript() public method

onPreRender() public method

public onPreRender ( $param )

Property Details

$_isvalid protected_oe property

protected $_isvalid