Jeff PHP framework  0.99
Modular, extensible, OOP, MVC, lightweight php framework designed to ease the programmers in the development of web applications.
authentication Class Reference

Class used to check user login/logout actions. More...

Static Public Member Functions

static check ()
 Cheks for user login/logout actions.
static checkUser ($user)
 Checks if user may access the system (main or admin area)

Detailed Description

Class used to check user login/logout actions.

Author:
abidibo abidi.nosp@m.bo@g.nosp@m.mail..nosp@m.com
Version:
0.99
Date:
2011-2012
See also:
http://www.opensource.org/licenses/mit-license.php

Definition at line 21 of file authentication.class.php.


Member Function Documentation

static authentication::check ( ) [static]

Cheks for user login/logout actions.

If the user is logging in checks its credentials. Exits with error if the authentication fails, sets the userid session variable and redirects the user if it has success.
If the user is logging out destroies the session and redirects to the home page.
If the user is already logged in is associated with the property 'user' of the register singleton instance, otherwise that property is associated with a user of type 'free user' with id equal to 0

Returns:
void

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static authentication::checkUser ( user) [static]

Checks if user may access the system (main or admin area)

Parameters:
user$userpublic
Returns:
true if the user has access false otherwise

Definition at line 87 of file authentication.class.php.

+ Here is the call graph for this function:


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