PHP Class Symfony\Component\Form\FormConfiguration

..).
Author: Fabien Potencier ([email protected])
显示文件 Open project: pmjones/php-framework-benchmarks Class Usage Examples

Protected Properties

Property Type Description
$defaultCsrfFieldName
$defaultCsrfProtection
$defaultCsrfSecret
$defaultLocale

Public Methods

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

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

enableDefaultCsrfProtection() public static method

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

getDefaultCsrfFieldName() public static method

Returns the default CSRF field name
public static getDefaultCsrfFieldName ( ) : string
return string The CSRF field name

getDefaultCsrfSecret() public static method

Returns the default CSRF secret
public static getDefaultCsrfSecret ( ) : string
return string

getDefaultLocale() public static method

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

isDefaultCsrfProtectionEnabled() public static method

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

setDefaultCsrfFieldName() public static method

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 method

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

setDefaultLocale() public static method

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