## Class TApplicationStatePersister

Description

Implements interfaces:

- IStatePersister

TApplicationStatePersister class.

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
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /TApplication.php (line 1235)

    TComponent
       |
       --TApplicationComponent
          |
          --TModule
             |
             --TApplicationStatePersister

Class Constant Summary
CACHE_NAME = 'prado:appstate'
Method Summary
string getStateFilePath ()
void init (TXmlElement $config)
mixed load ()
void save (mixed $state)
Methods
getStateFilePath (line 1254)

- return: the file path storing the application state
- access: protected

string getStateFilePath ()
init (line 1246)

Initializes module.

- access: public

void init (TXmlElement $config)

- TXmlElement $config: module configuration (may be null)

Redefinition of:

TModule::init()
  Initializes the module.

load (line 1263)

Loads application state from persistent storage.

- return: application state
- access: public

mixed load ()
save (line 1280)

Saves application state in persistent storage.

- access: public

void save (mixed $state)

- mixed $state: application state

#### Inherited Methods

Inherited From TModule

> TModule::getID()
> TModule::init()
> TModule::setID()

Inherited From TApplicationComponent

> TApplicationComponent::getApplication()
> TApplicationComponent::getRequest()
> TApplicationComponent::getResponse()
> TApplicationComponent::getService()
> TApplicationComponent::getSession()
> TApplicationComponent::getUser()
> TApplicationComponent::publishAsset()
> TApplicationComponent::publishFilePath()

Inherited From TComponent

> TComponent::attachEventHandler()
> TComponent::canGetProperty()
> TComponent::canSetProperty()
> TComponent::detachEventHandler()
> TComponent::evaluateExpression()
> TComponent::evaluateStatements()
> TComponent::getEventHandlers()
> TComponent::getSubProperty()
> TComponent::hasEvent()
> TComponent::hasEventHandler()
> TComponent::hasProperty()
> TComponent::raiseEvent()
> TComponent::setSubProperty()
> TComponent::__get()
> TComponent::__set()

Class Constants
CACHE_NAME = 'prado:appstate' (line 1240)

Name of the value stored in cache

Documentation generated on Sun, 04 Jun 2006 18:58:34 -0400 by phpDocumentor 1.3.0RC4