Formatting output Plese Wait...

zSession Class Reference
[Session Management.]

Session Management Class. More...

Inheritance diagram for zSession:

Inheritance graph
[legend]
Collaboration diagram for zSession:

Collaboration graph
[legend]

Public Member Functions

 zSession ()
 __construct ()
 started ()
 Is session started.
 start ()
 Starts the Session.
 getEncrypted ($key=null)
 Get value of an encrypted session variable.
 setEncrypted ($key, $val)
 Set value of an session variable in encrypted format.
 getPlain ($key=null)
 get's value of a Plain(UnEncrypted) session data.
 setPlain ($key, $val)
 Set's Session data as Plain Text(Un Encrypted) Stiores Session Data in Unencrypted Format so you need to invoke zSession::getPlain() to retrive its value.
 remove ($key=null)
 Removes a Session Variable.
 keyExists ($key=null)
 Checks wheather a Key exists with the name provided or not.
 commit ()
 Stores the session Data Immedietly.
 regenerateId ($delOldFlag=true)
 Regenarates Session ID.
 cookieParams ($lifeTime=null, $path=null, $domain=null, $secure=null, $httpOnly=null)
 get/set the session cookie parameters.
 Id ($id=null)
 get/set the Current session's Id
 Name ($sessionName=null)
 get/set the name of the current session
 rollBack ($savePointName=null)
 Rolls back the session data to the previous stage or to a Specified save point.
 savePoint ($savePointName)
 sets a savepoint

Data Fields

 $bak = array()
 $savePoint = array()

Detailed Description

Session Management Class.

zSession Class can be used with its static methods e.g. zSession::methodName() like zSession::start() or zSession::started() etc.. zSession can also be used from its Instance in ROM. which can be found on $request->session through $request Global Variable. and as ROM engine is embeded into Controller you can also use $this->request->session to call a static/non-static method from the Instance. zSession Class holds several static and non-static methods static methods can be called without an instance where as you must use ROM engine to call a non-static method. You can also use PHP's $_SESSION with it however this is more structured way. setting and getting variables through $_SESSION ould work like zSession::setPlain() and zSession::getPlain(). It also Supports Magic Methods like getName(), setName('Foo') etc..

Definition at line 40 of file session_handler.php.


Constructor & Destructor Documentation

zSession::__construct( ) 


Member Function Documentation

zSession::zSession( ) 

zSession::started( ) 

zSession::start( ) 

zSession::getEncrypted( string $key = null ) 

zSession::setEncrypted( string $key, mixed $val )

zSession::getPlain( string $key = null ) 

zSession::setPlain( string $key, mixed $val )

zSession::remove( string $key = null ) 

zSession::keyExists( string $key = null ) 

zSession::commit( ) 

zSession::regenerateId( string $delOldFlag = true ) 

zSession::cookieParams( int $lifeTime = null, string $path = null, string $domain = null, boolean $secure = null, boolean $httpOnly = null )

zSession::Id( string $id = null ) 

zSession::Name( string $sessionName = null ) 

zSession::rollBack( string $savePointName = null ) 

zSession::savePoint( string $savePointName ) 


Field Documentation

zSession::$bak = array()

zSession::$savePoint = array()


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

Generated on Mon Oct 27 23:54:31 2008 for zigmoyd.kdevelop by doxygen 1.5.6
CompoundsX
Build Compounds List