PHP Class Pop\Form\Element\Captcha

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

Protected Properties

Property Type Description
$token array Current token data

Public Methods

Method 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.

Protected Methods

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

Method Details

__construct() public method

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
return Captcha

generateEquation() protected method

Method to randomly generate a simple, basic equation
protected generateEquation ( ) : string
return string

setLabel() public method

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

setValidator() protected method

Method to set the validator
protected setValidator ( ) : void
return void

Property Details

$token protected_oe property

Current token data
protected array $token
return array