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
Mostrar archivo Open project: xiidea/ezrbac

Public Methods

Method 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 method

Constructor Function
public __construct ( )

get_permission() public method

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

set_permission() public method

Save access permission to database
public set_permission ( $controller, $role, $permission ) : mixed
$controller
$role
$permission
return mixed