\Permission

Permission manager Load matrix of the permission and check access

Summary

Methods
Properties
Constants
__construct()
load()
clear_menu_array()
init_static_apps()
init_components()
add_component()
add_permission()
get_access()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$group_users
$structure
$nobody_group_id
N/A

Properties

$group_users

$group_users : 

Type

$structure

$structure : 

Type

$nobody_group_id

$nobody_group_id : 

Type

Methods

__construct()

__construct() 

Constructor

load()

load() 

Load

clear_menu_array()

clear_menu_array(  $menu_array,   $user_id) 

Parameters

$menu_array
$user_id

init_static_apps()

init_static_apps() 

init_components()

init_components() 

add_component()

add_component(  $name,   $title) 

Parameters

$name
$title

add_permission()

add_permission(  $action,   $do) 

Parameters

$action
$do

get_access()

get_access(integer  $user_id, string  $component_name, string  $function_name) : boolean

Get access value for component.function

Parameters

integer $user_id
string $component_name
string $function_name

Returns

boolean