SphpPermission class for manage permissions system
Methods | ||||
---|---|---|---|---|
public
|
setPermissions(array $arrP)
Set Permissions List as Associate Array
Set Permissions List as Associate Array Parameters
|
# | ||
public
|
hasPermission(string $permission): boolean
Check is permission ID exists
Check is permission ID exists |
# | ||
public
|
isPermission(string $permissions): boolean
Check Single or multi permissions
Check Single or multi permissions Parameters
|
# | ||
public
|
getAuthenticate(string $perm = ""): boolean
Authorise user if permission is available otherwise application will be exit
and redirected by according to getWelcome…
Authorise user if permission is available otherwise application will be exit and redirected by according to getWelcome function in comp.php file in project folder Parameters
|
# |