메소드 | 설명 | |
---|---|---|
acl_add_option ( $options ) | NOTE: this function is not in use atm Add a new option to the list . | |
acl_delete ( $mode, $ug_id = false, $forum_id = false, $permission_type = false ) | Remove local permission | |
acl_set ( $ug_type, $forum_id, $ug_id, $auth, $role_id, $clear_prefetch = true ) | Set a user or group ACL record | |
acl_set_role ( $role_id, $auth ) | Set a role-specific ACL record | |
assign_cat_array ( &$category_array, $tpl_cat, $tpl_mask, $ug_id, $forum_id, $s_view, $show_trace = false ) | Assign category to template used by display_mask() | |
auth_admin ( ) | Init auth settings | |
build_permission_array ( &$permission_row, &$content_array, &$categories, $key_sort_array ) | Building content array from permission rows with explicit key ordering used by display_mask() | |
display_mask ( $mode, $permission_type, &$hold_ary, $user_mode = 'user', $local = false, $group_display = true ) | Display permission mask (assign to template) | |
display_role_mask ( &$hold_ary ) | Display permission mask for roles | |
get_mask ( set | view $mode, mixed $user_id = false, mixed $group_id = false, mixed $forum_id = false, string $auth_option = false, local | global $scope = false, ACL_NEVER | ACL_NO | ACL_YES $acl_fill = ACL_NEVER ) | Get permission mask This function only supports getting permissions of one type (for example a_) | |
get_role_mask ( $role_id ) | Get permission mask for roles This function only supports getting masks for one role | |
ghost_permissions ( $from_user_id, $to_user_id ) | Use permissions from another user. This transferes a permission set from one user to another. |
public acl_add_option ( $options ) |
public acl_delete ( $mode, $ug_id = false, $forum_id = false, $permission_type = false ) |
public acl_set ( $ug_type, $forum_id, $ug_id, $auth, $role_id, $clear_prefetch = true ) |
public assign_cat_array ( &$category_array, $tpl_cat, $tpl_mask, $ug_id, $forum_id, $s_view, $show_trace = false ) |
public build_permission_array ( &$permission_row, &$content_array, &$categories, $key_sort_array ) |
public display_mask ( $mode, $permission_type, &$hold_ary, $user_mode = 'user', $local = false, $group_display = true ) |
public display_role_mask ( &$hold_ary ) |
public get_mask ( set | view $mode, mixed $user_id = false, mixed $group_id = false, mixed $forum_id = false, string $auth_option = false, local | global $scope = false, ACL_NEVER | ACL_NO | ACL_YES $acl_fill = ACL_NEVER ) | ||
$mode | set | view | defines the permissions we get, view gets effective permissions (checking user AND group permissions), set only gets the user or group permission set alone |
$user_id | mixed | user ids to search for (a user_id or a group_id has to be specified at least) |
$group_id | mixed | group ids to search for, return group related settings (a user_id or a group_id has to be specified at least) |
$forum_id | mixed | forum_ids to search for. Defining a forum id also means getting local settings |
$auth_option | string | the auth_option defines the permission setting to look for (a_ for example) |
$scope | local | global | the scope defines the permission scope. If local, a forum_id is additionally required |
$acl_fill | ACL_NEVER | ACL_NO | ACL_YES | defines the mode those permissions not set are getting filled with |
public get_role_mask ( $role_id ) |
public ghost_permissions ( $from_user_id, $to_user_id ) |