package Core

 Methods

Check()

Check($section, $name, $user_id = NULL, $company_id = NULL

Parameters

$section

$name

$user_id

$company_id

PermissionDenied()

PermissionDenied($result = FALSE, $description = 'Permission Denied'

Parameters

$result

$description

Query()

Query($section, $name, $user_id = NULL, $company_id = NULL

Parameters

$section

$name

$user_id

$company_id

Redirect()

Redirect($result) 

Parameters

$result

getLastUpdatedDate()

getLastUpdatedDate($user_id = NULL, $company_id = NULL

Parameters

$user_id

$company_id

getLevel()

getLevel($user_id = NULL, $company_id = NULL

Parameters

$user_id

$company_id

getPermissionChildren()

getPermissionChildren($section, $name, $user_id = NULL, $company_id = NULL

Parameters

$section

$name

$user_id

$company_id

getPermissionFilterData()

getPermissionFilterData($section, $name, $user_id = NULL, $company_id = NULL

Parameters

$section

$name

$user_id

$company_id

getPermissionHierarchyChildren()

getPermissionHierarchyChildren($company_id, $user_id) 

Parameters

$company_id

$user_id

getPermissionHierarchySQL()

getPermissionHierarchySQL($company_id, $user_id, $outer_column) 
Static

Parameters

$company_id

$user_id

$outer_column

getPermissionIsChildIsOwnerFilterSQL()

getPermissionIsChildIsOwnerFilterSQL($filter_data, $outer_column_name) 
Static

Parameters

$filter_data

$outer_column_name

getPermissionIsChildIsOwnerSQL()

getPermissionIsChildIsOwnerSQL($id, $inner_column, $append_comma = TRUE
Static

Parameters

$id

$inner_column

$append_comma

getPermissions()

getPermissions($user_id, $company_id) 

Parameters

$user_id

$company_id

isChild()

isChild($row_object_id, $src_object_list, $current_user_id = NULL

Parameters

$row_object_id

$src_object_list

$current_user_id

isOwner()

isOwner($object_created_by, $object_assigned_to = NULL, $current_user_id = NULL

Parameters

$object_created_by

$object_assigned_to

$current_user_id

isPermissionChild()

isPermissionChild($user_id, $permission_children_ids) 

Parameters

$user_id

$permission_children_ids

 Properties

 

$cached_permission_children_ids

$cached_permission_children_ids 

Default

array()
 

$cached_permissions

$cached_permissions 

Default

array()