PHP Класс 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.
С версии: 3.2
Автор: Bérczi Gábor ([email protected])
Наследование: extends TBaseValidator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_isvalid

Открытые методы

Метод Описание
getClientScriptOptions ( )
getEnableClientScript ( )
onPreRender ( $param )

Защищенные методы

Метод Описание
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.

Описание методов

evaluateIsValid() защищенный Метод

The validation succeeds if the input control has the same value as the one displayed in the corresponding RECAPTCHA control.
protected evaluateIsValid ( ) : boolean
Результат boolean whether the validation succeeds

getCaptchaControl() защищенный Метод

protected getCaptchaControl ( )

getClientClassName() защищенный Метод

This method overrides the parent implementation.
protected getClientClassName ( ) : string
Результат string the javascript class name

getClientScriptOptions() публичный Метод

getEnableClientScript() публичный Метод

onPreRender() публичный Метод

public onPreRender ( $param )

Описание свойств

$_isvalid защищенное свойство

protected $_isvalid