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])
Afficher le fichier Open project: gregwar/formidable

Méthodes publiques

Свойство Type Description
$fieldName

Protected Properties

Свойство Type Description
$name
$token CSRF token

Méthodes publiques

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

Méthodes protégées

Méthode Description
generateToken ( ) Generate the token or get it from the session

Method Details

__construct() public méthode

public __construct ( $name = '' )

__toString() public méthode

public __toString ( )

generateToken() protected méthode

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

getHtml() public méthode

HTML render
public getHtml ( )

getToken() public méthode

Get the token value
public getToken ( )

posted() public méthode

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