Class \Prado\Web\UI\WebControls\TReCaptcha2Validator
TReCaptcha2Validator class
TReCaptcha2Validator validates a reCAPTCHA represented by a TReCaptcha control. The input control fails validation if th user did not pass the humanity test.
To use TReCaptcha2Validator, specify the \Prado\Web\UI\WebControls\setCaptchaControl to be the ID path of the TReCaptcha control.
Class hierarchy
- \Prado\Web\UI\WebControls\TReCaptcha2Validator
-
\Prado\Web\UI\WebControls\TBaseValidator
implements
IValidator -
\Prado\Web\UI\WebControls\TLabel
implements
IDataRenderer -
\Prado\Web\UI\WebControls\TWebControl
implements
IStyleable -
\Prado\Web\UI\TControl
implements
IRenderable, IBindable -
\Prado\TApplicationComponent
-
\Prado\TComponent
Since: 3.3.1
public
|
getClientScriptOptions() : array<string|int, mixed>
Returns an array of javascript validator options.
|
public
|
|
public
|
onPreRender(mixed $param) : mixed
Override parent implementation to update the control CSS Class before
the validated control is rendered
|
protected
|
evaluateIsValid() : bool
This method overrides the parent's implementation.
The validation succeeds if the input control has the same value as the one displayed in the corresponding RECAPTCHA control. |
protected
|
|
protected
|
getClientClassName() : string
Gets the name of the javascript class responsible for performing validation for this control.
This method overrides the parent implementation. |