PHP Class Pop\Form\Element\Csrf

Author: Nick Sagona, III ([email protected])
Inheritance: extends Pop\Form\Element
ファイルを表示 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 $indent = null ) : Csrf Constructor

Protected Methods

Method Description
setValidator ( ) : void Method to set the validator

Method Details

__construct() public method

Instantiate the CSRF form element object.
public __construct ( string $name, string $value = null, integer $expire = 300, string $indent = null ) : Csrf
$name string
$value string
$expire integer
$indent string
return Csrf

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