Class \Prado\Web\UI\WebControls\TReCaptchaValidator
TReCaptchaValidator class
TReCaptchaValidator validates user input against a reCAPTCHA represented by a 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 \Prado\Web\UI\WebControls\setCaptchaControl to be the ID path of the TReCaptcha control.
Class hierarchy
- \Prado\Web\UI\WebControls\TReCaptchaValidator
- \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.2
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. |