## 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
void getPage (TPage 0)
mixed load ()
void save (mixed $state)
void setPage (TPage $page)
Methods
getPage (line 38)

- access: public

void getPage (TPage 0)

- TPage 0: the page that this persister works for

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 Mon, 01 May 2006 23:04:16 -0400 by phpDocumentor 1.3.0RC4