PHP Class User_access_map

This model represents user access mapping data. It can be used for manipulation and retriving access previlages information.
Author: Roni Kumar Saha ([email protected])
Inheritance: extends CI_Model
Afficher le fichier Open project: xiidea/ezrbac

Méthodes publiques

Méthode Description
__construct ( ) Constructor Function
get_permission ( string $access_role, string $controller = "" ) : object Get permission info by access_role and controller
set_permission ( $controller, $role, $permission ) : mixed Save access permission to database

Method Details

__construct() public méthode

Constructor Function
public __construct ( )

get_permission() public méthode

Get permission info by access_role and controller
public get_permission ( string $access_role, string $controller = "" ) : object
$access_role string
$controller string
Résultat object

set_permission() public méthode

Save access permission to database
public set_permission ( $controller, $role, $permission ) : mixed
$controller
$role
$permission
Résultat mixed