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
ファイルを表示 Open project: pradosoft/prado

Public Methods

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

Protected Methods

Method Description
getStateFilePath ( ) : string

Method Details

getStateFilePath() protected method

protected getStateFilePath ( ) : string
return string the file path storing the application state

init() public method

Initializes module.
public init ( $config )

load() public method

Loads application state from persistent storage.
public load ( ) : mixed
return mixed application state

save() public method

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