PHP Class Pommo_Auth, poMMo

Show file Open project: soonick/poMMo

Public Methods

Method Description
__construct ( $args = [] ) * __construct default constructor. Get current logged in user from session.
getPermissionLevel ( $username = null ) * getPermissionLevel Returns current user permission level
isAuthenticated ( ) Check if a user is authenticated (logged on)
login ( $username ) * login Saves a user login
logout ( )

Method Details

__construct() public method

permissions.
public __construct ( $args = [] )
$args

getPermissionLevel() public method

* getPermissionLevel Returns current user permission level
public getPermissionLevel ( $username = null )
$username

isAuthenticated() public method

Check if a user is authenticated (logged on)
public isAuthenticated ( )

login() public method

* login Saves a user login
public login ( $username )

logout() public method

public logout ( )