PHP Класс himiklab\yii2\recaptcha\ReCaptcha

For example: php field($model, 'reCaptcha')->widget( ReCaptcha::className(), ['siteKey' => 'your siteKey'] ) ?> or php 'reCaptcha', 'siteKey' => 'your siteKey', 'widgetOptions' => ['class' => 'col-sm-offset-3'] ]) ?>
См. также: https://developers.google.com/recaptcha
Автор: HimikLab
Наследование: extends yii\widgets\InputWidget
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$jsCallback Your JS callback function that's executed when the user submits a successful CAPTCHA response.
$jsExpiredCallback Your JS callback function that's executed when the recaptcha response expires and the user needs to solve a new CAPTCHA.
$secret Your secret.
$siteKey Your sitekey.
$size The size of the widget. [[SIZE_NORMAL]] (default) or [[SIZE_COMPACT]]
$tabindex The tabindex of the widget
$theme The color theme of the widget. [[THEME_LIGHT]] (default) or [[THEME_DARK]]
$type The type of CAPTCHA to serve. [[TYPE_IMAGE]] (default) or [[TYPE_AUDIO]]
$widgetOptions Additional html widget options, such as class.

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

Метод Описание
run ( )

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

Метод Описание
customFieldPrepare ( )
getLanguageSuffix ( )

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

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

protected customFieldPrepare ( )

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

protected getLanguageSuffix ( )

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

public run ( )

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

$jsCallback публичное свойство

Your JS callback function that's executed when the user submits a successful CAPTCHA response.
public $jsCallback

$jsExpiredCallback публичное свойство

Your JS callback function that's executed when the recaptcha response expires and the user needs to solve a new CAPTCHA.
public $jsExpiredCallback

$secret публичное свойство

Your secret.
public $secret

$siteKey публичное свойство

Your sitekey.
public $siteKey

$size публичное свойство

The size of the widget. [[SIZE_NORMAL]] (default) or [[SIZE_COMPACT]]
public $size

$tabindex публичное свойство

The tabindex of the widget
public $tabindex

$theme публичное свойство

The color theme of the widget. [[THEME_LIGHT]] (default) or [[THEME_DARK]]
public $theme

$type публичное свойство

The type of CAPTCHA to serve. [[TYPE_IMAGE]] (default) or [[TYPE_AUDIO]]
public $type

$widgetOptions публичное свойство

Additional html widget options, such as class.
public $widgetOptions