Main Page | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

JSession Class Reference

Inheritance diagram for JSession:

Inheritance graph
[legend]
Collaboration diagram for JSession:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CheckSession ($url)
 SetVar ($var, $valor)
 GetVar ($var)
 UnsetVar ($var)
 ExistsVar ($var)
 CleanAll ()

Detailed Description

Class that is a wrapper of the session management functions in php. All its methods are static.

Definition at line 12 of file JSession.class.php.


Member Function Documentation

JSession::CheckSession url  ) 
 

Checks if the user is logged in the current session.

Todo:
This should be removed from here and added to JSystem
Returns:
boolean

Definition at line 19 of file JSession.class.php.

References ExistsVar().

JSession::CleanAll  ) 
 

Clears all the information in the session.

Definition at line 79 of file JSession.class.php.

Referenced by JSystem::JSystem(), and JSystem::Logout().

JSession::ExistsVar var  ) 
 

Checks if already exists a variable in the session.

Parameters:
var The name of the variable.
Returns:
boolean

Definition at line 69 of file JSession.class.php.

Referenced by CheckSession(), Modules::GetInstance(), JUgrSystem::GetInstance(), JContext::GetInstance(), and ConfigCache::GetInstance().

JSession::GetVar var  ) 
 

Gets the value of a variable in the session.

Parameters:
var The name of the variable
Returns:
The value of the variable. It returns false if the variable doesn't exist.

Definition at line 43 of file JSession.class.php.

Referenced by Modules::GetInstance(), JUgrSystem::GetInstance(), JContext::GetInstance(), and ConfigCache::GetInstance().

JSession::SetVar var,
valor
 

Adds a new variable to the session.

Parameters:
var The name of the variable.
valor The value of the variable.

Definition at line 30 of file JSession.class.php.

Referenced by Modules::_UpdateSession(), JUgrSystem::_UpdateSession(), JContext::_UpdateSession(), ConfigCache::_UpdateSession(), and JUgrSystem::GetInstance().

JSession::UnsetVar var  ) 
 

Removes a variable from the session

Parameters:
var The name of the variable which is going to be removed.

Definition at line 55 of file JSession.class.php.


The documentation for this class was generated from the following file:
Generated on Wed Nov 19 20:29:40 2003 for James by doxygen 1.3.4