DisabledFormProtection extends AbstractFormProtection
This class is a dummy implementation of the form protection, which is used when no authentication is used.
Table of Contents
Properties
- $sessionToken : string|null
- The session token which is used to be hashed during token generation.
- $validationFailedCallback : Closure|null
Methods
- __wakeup() : mixed
- Deny object deserialization.
- clean() : mixed
- Deletes the session token and persists the (empty) token.
- generateToken() : string
- Disable parent method
- persistSessionToken() : mixed
- Dummy implementation
- validateToken() : bool
- Disable parent method.
- createValidationErrorMessage() : mixed
- Creates or displays an error message telling the user that the submitted form token is invalid.
- generateSessionToken() : string
- Generates the random token which is used in the hash for the form tokens.
- getSessionToken() : string
- retrieveSessionToken() : string
- Dummy implementation
Properties
$sessionToken
The session token which is used to be hashed during token generation.
protected
string|null
$sessionToken
$validationFailedCallback
protected
Closure|null
$validationFailedCallback
Methods
__wakeup()
Deny object deserialization.
public
__wakeup() : mixed
clean()
Deletes the session token and persists the (empty) token.
public
clean() : mixed
This function is intended to be called when a user logs on or off.
generateToken()
Disable parent method
public
generateToken(string $formName[, string $action = '' ][, string $formInstanceName = '' ]) : string
Parameters
- $formName : string
- $action : string = ''
- $formInstanceName : string = ''
Return values
stringpersistSessionToken()
Dummy implementation
public
persistSessionToken() : mixed
validateToken()
Disable parent method.
public
validateToken(string $tokenId, string $formName[, string $action = '' ][, string $formInstanceName = '' ]) : bool
Always return TRUE.
Parameters
- $tokenId : string
- $formName : string
- $action : string = ''
- $formInstanceName : string = ''
Return values
boolcreateValidationErrorMessage()
Creates or displays an error message telling the user that the submitted form token is invalid.
protected
createValidationErrorMessage() : mixed
generateSessionToken()
Generates the random token which is used in the hash for the form tokens.
protected
generateSessionToken() : string
Return values
stringgetSessionToken()
protected
getSessionToken() : string
Return values
stringretrieveSessionToken()
Dummy implementation
protected
retrieveSessionToken() : string