PHP Class Pop\Form\Element\Captcha

Author: Nick Sagona, III ([email protected])
Inheritance: extends Pop\Form\Element
Afficher le fichier Open project: nicksagona/PopPHP

Protected Properties

Свойство Type Description
$token array Current token data

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
generateEquation ( ) : string Method to randomly generate a simple, basic equation
setValidator ( ) : void Method to set the validator

Method Details

__construct() public méthode

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
Résultat Captcha

generateEquation() protected méthode

Method to randomly generate a simple, basic equation
protected generateEquation ( ) : string
Résultat string

setLabel() public méthode

Set the label of the form element object.
public setLabel ( string $label ) : Element
$label string
Résultat Pop\Form\Element

setValidator() protected méthode

Method to set the validator
protected setValidator ( ) : void
Résultat void

Property Details

$token protected_oe property

Current token data
protected array $token
Résultat array