PHP Class Gregwar\Formidable\PostIndicator

If the sessions are active, a CSRF token will be used. Else, a token depending on form name and installation directory will be used.
Author: Grégoire Passault ([email protected])
Mostra file Open project: gregwar/formidable

Public Properties

Property Type Description
$fieldName

Protected Properties

Property Type Description
$name
$token CSRF token

Public Methods

Method Description
__construct ( $name = '' )
__toString ( )
getHtml ( ) HTML render
getToken ( ) Get the token value
posted ( $method = 'post' ) Tell if the given form was posted

Protected Methods

Method Description
generateToken ( ) Generate the token or get it from the session

Method Details

__construct() public method

public __construct ( $name = '' )

__toString() public method

public __toString ( )

generateToken() protected method

Generate the token or get it from the session
protected generateToken ( )

getHtml() public method

HTML render
public getHtml ( )

getToken() public method

Get the token value
public getToken ( )

posted() public method

Tell if the given form was posted
public posted ( $method = 'post' )

Property Details

$fieldName public_oe static_oe property

public static $fieldName

$name protected_oe property

protected $name

$token protected_oe property

CSRF token
protected $token