PHP Class Symfony\Component\Form\FormConfiguration

..).
Author: Fabien Potencier ([email protected])
Afficher le fichier Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Свойство Type Description
$defaultCsrfFieldName
$defaultCsrfProtection
$defaultCsrfSecret
$defaultLocale

Méthodes publiques

Méthode Description
disableDefaultCsrfProtection ( ) Disables Csrf protection for all forms.
enableDefaultCsrfProtection ( ) Enables CSRF protection for all new forms
getDefaultCsrfFieldName ( ) : string Returns the default CSRF field name
getDefaultCsrfSecret ( ) : string Returns the default CSRF secret
getDefaultLocale ( ) : string Returns the default locale for newly created forms.
isDefaultCsrfProtectionEnabled ( ) Checks if Csrf protection for all forms is enabled.
setDefaultCsrfFieldName ( string $name ) Sets the CSRF field name used in all new CSRF protected forms
setDefaultCsrfSecret ( string $secret ) Sets the CSRF secret used in all new CSRF protected forms
setDefaultLocale ( string $defaultLocale ) Sets the default locale for newly created forms.

Method Details

disableDefaultCsrfProtection() public static méthode

Disables Csrf protection for all forms.
public static disableDefaultCsrfProtection ( )

enableDefaultCsrfProtection() public static méthode

Enables CSRF protection for all new forms
public static enableDefaultCsrfProtection ( )

getDefaultCsrfFieldName() public static méthode

Returns the default CSRF field name
public static getDefaultCsrfFieldName ( ) : string
Résultat string The CSRF field name

getDefaultCsrfSecret() public static méthode

Returns the default CSRF secret
public static getDefaultCsrfSecret ( ) : string
Résultat string

getDefaultLocale() public static méthode

Returns the default locale for newly created forms.
public static getDefaultLocale ( ) : string
Résultat string

isDefaultCsrfProtectionEnabled() public static méthode

Checks if Csrf protection for all forms is enabled.
public static isDefaultCsrfProtectionEnabled ( )

setDefaultCsrfFieldName() public static méthode

Sets the CSRF field name used in all new CSRF protected forms
public static setDefaultCsrfFieldName ( string $name )
$name string The CSRF field name

setDefaultCsrfSecret() public static méthode

Sets the CSRF secret used in all new CSRF protected forms
public static setDefaultCsrfSecret ( string $secret )
$secret string

setDefaultLocale() public static méthode

Sets the default locale for newly created forms.
public static setDefaultLocale ( string $defaultLocale )
$defaultLocale string

Property Details

$defaultCsrfFieldName protected_oe static_oe property

protected static $defaultCsrfFieldName

$defaultCsrfProtection protected_oe static_oe property

protected static $defaultCsrfProtection

$defaultCsrfSecret protected_oe static_oe property

protected static $defaultCsrfSecret

$defaultLocale protected_oe static_oe property

protected static $defaultLocale