PHP Class himiklab\yii2\recaptcha\ReCaptchaValidator

Author: HimikLab
Inheritance: extends yii\validators\Validator
Afficher le fichier Open project: himiklab/yii2-recaptcha-widget Class Usage Examples

Méthodes publiques

Свойство Type Description
$grabberType Choose your grabber for getting JSON, self::GRABBER_PHP = file_get_contents, self::GRABBER_CURL = CURL
$secret The shared key between your site and ReCAPTCHA.
$skipOnEmpty Whether to skip this validator if the input is empty.
$uncheckedMessage

Méthodes publiques

Méthode Description
clientValidateAttribute ( Model $model, string $attribute, View $view ) : string
init ( )

Méthodes protégées

Méthode Description
getResponse ( string $request ) : mixed
validateValue ( string $value ) : array | null

Method Details

clientValidateAttribute() public méthode

public clientValidateAttribute ( Model $model, string $attribute, View $view ) : string
$model yii\base\Model
$attribute string
$view yii\web\View
Résultat string

getResponse() protected méthode

protected getResponse ( string $request ) : mixed
$request string
Résultat mixed

init() public méthode

public init ( )

validateValue() protected méthode

protected validateValue ( string $value ) : array | null
$value string
Résultat array | null

Property Details

$grabberType public_oe property

Choose your grabber for getting JSON, self::GRABBER_PHP = file_get_contents, self::GRABBER_CURL = CURL
public $grabberType

$secret public_oe property

The shared key between your site and ReCAPTCHA.
public $secret

$skipOnEmpty public_oe property

Whether to skip this validator if the input is empty.
public $skipOnEmpty

$uncheckedMessage public_oe property

public $uncheckedMessage