PHP Class 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'] ]) ?>
See also: https://developers.google.com/recaptcha
Author: HimikLab
Inheritance: extends yii\widgets\InputWidget
Afficher le fichier Open project: himiklab/yii2-recaptcha-widget Class Usage Examples

Méthodes publiques

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
run ( )

Méthodes protégées

Méthode Description
customFieldPrepare ( )
getLanguageSuffix ( )

Method Details

customFieldPrepare() protected méthode

protected customFieldPrepare ( )

getLanguageSuffix() protected méthode

protected getLanguageSuffix ( )

run() public méthode

public run ( )

Property Details

$jsCallback public_oe property

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

$jsExpiredCallback public_oe property

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

$secret public_oe property

Your secret.
public $secret

$siteKey public_oe property

Your sitekey.
public $siteKey

$size public_oe property

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

$tabindex public_oe property

The tabindex of the widget
public $tabindex

$theme public_oe property

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

$type public_oe property

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

$widgetOptions public_oe property

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