CORE POS - Fannie
The CORE POS back end
Static Public Member Functions | List of all members
FannieAuth Class Reference

Static Public Member Functions

static checkLogin ()
 
static validateUserQuiet ($auth, $sub='all')
 
static getUID ($name)
 
static createClass ($auth_class, $description)
 

Member Function Documentation

static FannieAuth::checkLogin ( )
static

Check who is logged in

Returns
string username or False

If authentication is not enabled, this function returns the string 'null'. If an init.php file is in place it returns the string 'init'.

static FannieAuth::createClass (   $auth_class,
  $description 
)
static

Create/update authorization class

Parameters
$auth_class[string] class name
$description[string] description of authorization class
Returns
[boolean] success / failure
static FannieAuth::getUID (   $name)
static

Get UID for given username

Parameters
$namethe username
Returns
string UID or False

If authentication is not enabled, returns string '0000'.

static FannieAuth::validateUserQuiet (   $auth,
  $sub = 'all' 
)
static

Check if the current user has the given permission

Parameters
$authauthorization class name
$suboptional subclass
Returns
current username or False

If authentication is not enabled, this function returns the string 'null'. If an init.php file is in place it returns the string 'init'.


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