PHP Класс Pop\Form\Element\Captcha

Автор: Nick Sagona, III ([email protected])
Наследование: extends Pop\Form\Element
Показать файл Открыть проект

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

Свойство Тип Описание
$token array Current token data

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

Метод Описание
__construct ( string $name, string $value = null, integer $expire = 300, string $captcha = null, string $indent = null ) : Captcha Constructor
setLabel ( string $label ) : Element Set the label of the form element object.

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

Метод Описание
generateEquation ( ) : string Method to randomly generate a simple, basic equation
setValidator ( ) : void Method to set the validator

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

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

Instantiate the captcha form element object.
public __construct ( string $name, string $value = null, integer $expire = 300, string $captcha = null, string $indent = null ) : Captcha
$name string
$value string
$expire integer
$captcha string
$indent string
Результат Captcha

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

Method to randomly generate a simple, basic equation
protected generateEquation ( ) : string
Результат string

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

Set the label of the form element object.
public setLabel ( string $label ) : Element
$label string
Результат Pop\Form\Element

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

Method to set the validator
protected setValidator ( ) : void
Результат void

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

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

Current token data
protected array $token
Результат array