PHP Class Prado\TApplicationStatePersister

TApplicationStatePersister provides a file-based persistent storage for application state. Application state, when serialized, is stored in a file named 'global.cache' under the 'runtime' directory of the application. Cache will be exploited if it is enabled.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: extends TModule, implements prado\IStatePersister
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
init ( $config ) Initializes module.
load ( ) : mixed Loads application state from persistent storage.
save ( $state ) Saves application state in persistent storage.

Méthodes protégées

Méthode Description
getStateFilePath ( ) : string

Method Details

getStateFilePath() protected méthode

protected getStateFilePath ( ) : string
Résultat string the file path storing the application state

init() public méthode

Initializes module.
public init ( $config )

load() public méthode

Loads application state from persistent storage.
public load ( ) : mixed
Résultat mixed application state

save() public méthode

Saves application state in persistent storage.
public save ( $state )