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
-
- 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
-
$auth | authorization class name |
$sub | optional 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:
- fannie/classlib2.0/auth/FannieAuth.php