Class TPageStatePersister

Description

Implements interfaces:

TPageStatePersister class

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

Since page state can be very big for complex pages, consider using alternative persisters, such as TSessionPageStatePersister, which store page state on the server side and thus reduce the network traffic for transmitting bulky page state.

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TPageStatePersister.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.0

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

TComponent
   |
   --TPageStatePersister
Method Summary
mixed load ()
void save (mixed $state)
void setPage (TPage $page)
Methods
getPage (line 36)
  • return: the page that this persister works for
  • access: public
TPage getPage ()

Implementation of:
IPageStatePersister::getPage()
load (line 63)

Loads page state from hidden fields.

  • return: the restored state
  • throws: THttpException if page state is corrupted
  • access: public
mixed load ()

Implementation of:
IPageStatePersister::load()
Loads page state from persistent storage
save (line 53)

Saves state in hidden fields.

  • access: public
void save (mixed $state)
  • mixed $state: state to be stored

Implementation of:
IPageStatePersister::save()
Saves state to persistent storage.
setPage (line 44)
  • access: public
void setPage (TPage $page)
  • TPage $page: the page that this persister works for

Implementation of:
IPageStatePersister::setPage()

Inherited Methods

Inherited From TComponent

TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__call()
TComponent::__get()
TComponent::__set()
TComponent::__sleep()
TComponent::__wakeup()

Documentation generated on Mon, 25 Jun 2012 14:38:51 +0200 by phpDocumentor 1.4.3