Newsletterdeveloper's documentation

dbo_manager Class Reference
[DBO Core API]

Database objects system manager. More...

List of all members.

Static Public Member Functions

static start_session ()
 Start new DBO session and discard previous one.
static get_session ()
 Get current session or create new one if none is active.
static activate_session (dbo_session $session)
 Activate existing DBO session.
static save_session ($id)
 Save DBO session to the PHP session.
static load_session ($id)
 Load DBO session from the PHP session and make it active.

Static Private Attributes

static $manager
static $session


Detailed Description

Database objects system manager.

This class is used to manage DBO sessions:


Member Function Documentation

static dbo_manager::activate_session ( dbo_session session  )  [static]

Activate existing DBO session.

Parameters:
session [dbo_session] Session to activate.

References $session.

static dbo_manager::get_session (  )  [static]

Get current session or create new one if none is active.

Returns:
[dbo_session] Active DBO session.

References $session, and start_session().

Referenced by dbo::__construct(), dbo::get(), and save_session().

static dbo_manager::load_session ( id  )  [static]

Load DBO session from the PHP session and make it active.

Parameters:
id [string] DBO Session ID.
Returns:
[dbo_session] Loaded DBO session.

References $session.

static dbo_manager::save_session ( id  )  [static]

Save DBO session to the PHP session.

Parameters:
id [string] DBO Session ID, that can be used for load_session().

References get_session().

static dbo_manager::start_session (  )  [static]

Start new DBO session and discard previous one.

Returns:
[dbo_session] New DBO session.

References $session.

Referenced by get_session().


Member Data Documentation

dbo_manager::$manager [static, private]

dbo_manager::$session [static, private]


The documentation for this class was generated from the following file:
Documentation for Newsletter, Tue Nov 11 07:50:02 2008.