Auth Class Reference

List of all members.

Public Member Functions

 __construct ()
 Constructor.
 isLoggedIn ()
 Check if the user successfully logged in.
 isAdmin ()
 Check if the user logged in as administrator.
 isGod ()
 Check if the user logged in as superadmin.
 validateUser ()
 Get current user's level.

Public Attributes

 $_session
 pointer to global var $session


Detailed Description

User authetication and permissions FIXME under complete revision!

Definition at line 37 of file auth.php.


Constructor & Destructor Documentation

Auth::__construct (  ) 

Constructor.

Definition at line 46 of file auth.php.

References $session.


Member Function Documentation

Auth::isLoggedIn (  ) 

Check if the user successfully logged in.

Returns:
(bolean) TRUE if user successfully logged in

Definition at line 65 of file auth.php.

Referenced by isAdmin().

Auth::isAdmin (  ) 

Check if the user logged in as administrator.

Returns:
(boolean) TRUE if user logged in as administrator

Definition at line 74 of file auth.php.

References isLoggedIn().

Referenced by isGod().

Auth::isGod (  ) 

Check if the user logged in as superadmin.

Returns:
(boolean) TRUE if user logged in as superadmin

Definition at line 83 of file auth.php.

References isAdmin().

Auth::validateUser (  ) 

Get current user's level.

Returns:
user's level: {3 = admin; 2 = logged in and group member; 1 = logged in; 0 = not logged} [TODO comments] Authenticate a user in the system.

Definition at line 105 of file auth.php.

References $log.


Member Data Documentation

Auth::$_session

pointer to global var $session

Definition at line 41 of file auth.php.


The documentation for this class was generated from the following file:
Generated on Fri Feb 22 11:19:48 2008 for CMSkey by  doxygen 1.5.3