captcha\Captcha run()

run() public method Renders the widget. public void run ( )

captcha\CaptchaAction $backColor

$backColor public property The background color. For example, 0x55FF00. Defaults to 0xFFFFFF, meaning white color. public integer $backColor = 16777215

captcha\Captcha registerClientScript()

registerClientScript() public method Registers the needed JavaScript. public void registerClientScript ( )

captcha\Captcha init()

init() public method Initializes the widget. public void init ( )

captcha\Captcha checkRequirements()

checkRequirements() public static method Checks if there is graphic extension available to generate CAPTCHA images. This method will check the existence of ImageMagick and GD extensions. public static string checkRequirements ( )return string The name of the graphic extension, either "imagick" or "gd". throws yii\base\InvalidConfigException if neither ImageMagick nor GD is installed.

captcha\Captcha getClientOptions()

getClientOptions() protected method Returns the options for the captcha JS widget. protected array getClientOptions ( )return array The options

captcha\Captcha $template

$template public property The template for arranging the CAPTCHA image tag and the text input tag. In this template, the token {image} will be replaced with the actual image tag, while {input} will be replaced with the text input tag. public string $template = '{image} {input}'

captcha\Captcha $options

$options public property The HTML attributes for the input tag. See also yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. public array $options = ['class' => 'form-control']

captcha\Captcha $captchaAction

$captchaAction public property The route of the action that generates the CAPTCHA images. The action represented by this route must be an action of yii\captcha\CaptchaAction. Please refer to yii\helpers\Url::toRoute() for acceptable formats. public string|array $captchaAction = 'site/captcha'

caching\ZendDataCache setValue()

setValue() protected method Stores a value identified by a key in cache. This is the implementation of the method declared in the parent class. protected boolean setValue ( $key, $value, $duration )$key string The key identifying the value to be cached $value mixed The value to be cached. Most often it's a string. If you have disabled $serializer, it could be something else. $duration integer The number of seconds in which the cached value will expire. 0 means never expire. return b