phpBB API Documentation
Class

acp_permissions

class acp_permissions

Properties

$u_action
$permission_dropdown

Methods

main($id, $mode)

build_subforum_options($forum_list)

Build +subforum options

build_permission_dropdown($options, $default_option, $permission_scope)

Build dropdown field for changing permission types

check_existence($mode, $ids)

Check if selected items exist.

set_permissions($mode, $permission_type, $auth_admin, $user_id, $group_id)

Apply permissions

set_all_permissions($mode, $permission_type, $auth_admin, $user_id, $group_id)

Apply all permissions

check_assigned_role($role_id, $auth_settings)

Compare auth settings with auth settings from role returns false if they differ, true if they are equal

remove_permissions($mode, $permission_type, $auth_admin, $user_id, $group_id, $forum_id)

Remove permissions

log_action($mode, $action, $permission_type, $ug_type, $ug_id, $forum_id)

Log permission changes

permission_trace($user_id, $forum_id, $permission)

Display a complete trace tree for the selected permission to determine where settings are set/unset

copy_forum_permissions()

Handles copying permissions from one forum to others

retrieve_defined_user_groups($permission_scope, $forum_id, $permission_type)

Get already assigned users/groups

Details

at line 27
public main($id, $mode)

Parameters

$id
$mode

at line 545
public build_subforum_options($forum_list)

Build +subforum options

Parameters

$forum_list

at line 589
public build_permission_dropdown($options, $default_option, $permission_scope)

Build dropdown field for changing permission types

Parameters

$options
$default_option
$permission_scope

at line 612
public check_existence($mode, $ids)

Check if selected items exist.

Remove not found ids and if empty return error.

Parameters

$mode
$ids

at line 658
public set_permissions($mode, $permission_type, $auth_admin, $user_id, $group_id)

Apply permissions

Parameters

$mode
$permission_type
$auth_admin
$user_id
$group_id

at line 747
public set_all_permissions($mode, $permission_type, $auth_admin, $user_id, $group_id)

Apply all permissions

Parameters

$mode
$permission_type
$auth_admin
$user_id
$group_id

at line 822
public check_assigned_role($role_id, $auth_settings)

Compare auth settings with auth settings from role returns false if they differ, true if they are equal

Parameters

$role_id
$auth_settings

at line 859
public remove_permissions($mode, $permission_type, $auth_admin, $user_id, $group_id, $forum_id)

Remove permissions

Parameters

$mode
$permission_type
$auth_admin
$user_id
$group_id
$forum_id

at line 895
public log_action($mode, $action, $permission_type, $ug_type, $ug_id, $forum_id)

Log permission changes

Parameters

$mode
$action
$permission_type
$ug_type
$ug_id
$forum_id

at line 949
public permission_trace($user_id, $forum_id, $permission)

Display a complete trace tree for the selected permission to determine where settings are set/unset

Parameters

$user_id
$forum_id
$permission

at line 1173
public copy_forum_permissions()

Handles copying permissions from one forum to others

at line 1224
public retrieve_defined_user_groups($permission_scope, $forum_id, $permission_type)

Get already assigned users/groups

Parameters

$permission_scope
$forum_id
$permission_type