PHP Class Ezcontrollers

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
Datei anzeigen Open project: xiidea/ezrbac

Public Methods

Method Description
__construct ( ) Constructor function
clear_garbage ( array $existing = [] ) Remove all access_role info which controller is not available
get_controllers ( ) : array get the controller list
get_permission ( $access_role, $controller ) : object Get user record by email

Private Methods

Method Description
scan_for_controller ( string $d = "", string $pre = "" ) : array

Method Details

__construct() public method

Constructor function
public __construct ( )

clear_garbage() public method

Remove all access_role info which controller is not available
public clear_garbage ( array $existing = [] )
$existing array

get_controllers() public method

get the controller list
public get_controllers ( ) : array
return array

get_permission() public method

Get user record by email
public get_permission ( $access_role, $controller ) : object
$access_role
$controller
return object