## Class TPageStatePersister

Description

Implements interfaces:

- IPageStatePersister

TPageStatePersister class

TPageStatePersister implements a page state persistent method based on form hidden fields.

Depending on the EnableStateValidation and EnableStateEncryption, TPageStatePersister may do HMAC validation and encryption to prevent the state data from being tampered or viewed. The private keys and hashing/encryption methods are determined by SecurityManager.

- since: 3.0
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Web/UI/TPageStatePersister.php (line 31)

    TComponent
       |
       --TApplicationComponent
          |
          --TPageStatePersister

Method Summary
TPage getPage ()
mixed load ()
void save (mixed $state)
void setPage (TPage $page)
Methods
getPage (line 38)

- return: the page that this persister works for
- access: public

TPage getPage ()
load (line 73)

Loads page state from hidden fields.

- return: the restored state
- access: public
- throws: THttpException if page state is corrupted

mixed load ()
save (line 55)

Saves state in hidden fields.

- access: public

void save (mixed $state)

- mixed $state: state to be stored

setPage (line 46)

- access: public

void setPage (TPage $page)

- TPage $page: the page that this persister works for

#### Inherited Methods

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()

Documentation generated on Sun, 04 Jun 2006 19:00:02 -0400 by phpDocumentor 1.3.0RC4