/include/state.php

Description

State functions.

$Id: state.php 559 2005-11-21 15:15:55Z stijn $

Functions
restoreState (line 49)

Restore previously stored state.

Restore the state stored in the session by saveState. Specifically, it restores the following variables:

  • $_POST
  • $_GET
  • $_SERVER['QUERY_STRING']
Using the restored state, the superglobal array l$_REQUEST is reconstructed.

void restoreState (mixed $name)
saveState (line 31)

Save the current page request state using an identifier.

Saves the following variables in the current session:

  • $_POST
  • $_GET
  • $_SERVER['QUERY_STRING']
In practice, this is enough to allow a user application to restore to a previous state by using restoreState.

This function does not currently nest, it will happily overwrite the old saved state if called twice.

void saveState (mixed $name)
stateSaved (line 13)

Checks for a saved state identified by a name.

void stateSaved (mixed $name)

Documentation generated on Fri, 30 Jun 2006 10:31:38 +0200 by phpDocumentor 1.3.0RC3