spunQ_DelayedSessionManager Class Reference

Session manager that initializes only if the current session is requested. More...

Inheritance diagram for spunQ_DelayedSessionManager:

spunQ_ISessionManager

List of all members.

Public Member Functions

 __construct (spunQ_ISessionManager $manager)
 Constructor.
 initialize ()
 Called at the start of a script to initialize a session.
 shutdown ()
 Called at the end of a script to allow cleaning up.
 getCurrentSession ()
 Provides the current session.

Protected Attributes

 $manager
 The wrapped session manager.
 $initialized = false
 Whether the wrapped session manager has been initialized.


Detailed Description

Session manager that initializes only if the current session is requested.

Wraps another session manager and delays the call to its initialize() function until the current session is requested for the first time.

Definition at line 8 of file DelayedSessionManager.class.php.


Constructor & Destructor Documentation

spunQ_DelayedSessionManager::__construct ( spunQ_ISessionManager manager  ) 

Constructor.

Parameters:
$manager The wrapped session manager.

Definition at line 26 of file DelayedSessionManager.class.php.


Member Function Documentation

spunQ_DelayedSessionManager::getCurrentSession (  ) 

Provides the current session.

Returns:
spunQ_ISession

Implements spunQ_ISessionManager.

Definition at line 51 of file DelayedSessionManager.class.php.

spunQ_DelayedSessionManager::initialize (  ) 

Called at the start of a script to initialize a session.

Returns:
void

Implements spunQ_ISessionManager.

Definition at line 34 of file DelayedSessionManager.class.php.

spunQ_DelayedSessionManager::shutdown (  ) 

Called at the end of a script to allow cleaning up.

Returns:
void

Implements spunQ_ISessionManager.

Definition at line 41 of file DelayedSessionManager.class.php.


Member Data Documentation

spunQ_DelayedSessionManager::$initialized = false [protected]

Whether the wrapped session manager has been initialized.

Type:
boolean

Definition at line 20 of file DelayedSessionManager.class.php.

spunQ_DelayedSessionManager::$manager [protected]

The wrapped session manager.

Type:
spunQ_ISessionManager

Definition at line 14 of file DelayedSessionManager.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:39 2011 for spunQ3 by  doxygen 1.5.9