Class WsAuth
WsAuth Base class for user authentication.
Example usage:
$auth = new WsAuth(); //check if any user is logged in if ($auth->checkSessioun()) { . . . } // check if logged in user has specific permission if ($auth->hasPermission('perm_name')) { . . . }
Located at WsAuth.class.php
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
string
|
|
public
integer
|
public
|
$isUsable
checks if database object is available. Database is needed for WsAuth module. |