PHP Class acp_permissions

Mostrar archivo Open project: phpbb/phpbb

Public Properties

Property Type Description
$permission_dropdown
$u_action

Protected Properties

Property Type Description
$permissions

Public Methods

Method Description
build_permission_dropdown ( $options, $default_option, $permission_scope ) Build dropdown field for changing permission types
build_subforum_options ( $forum_list ) Build +subforum options
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
check_existence ( $mode, &$ids ) Check if selected items exist. Remove not found ids and if empty return error.
copy_forum_permissions ( ) Handles copying permissions from one forum to others
log_action ( $mode, $action, $permission_type, $ug_type, $ug_id, $forum_id ) Log permission changes
main ( $id, $mode )
permission_trace ( $user_id, $forum_id, $permission ) Display a complete trace tree for the selected permission to determine where settings are set/unset
remove_permissions ( $mode, $permission_type, &$auth_admin, &$user_id, &$group_id, &$forum_id ) Remove permissions
retrieve_defined_user_groups ( $permission_scope, $forum_id, $permission_type ) Get already assigned users/groups
set_all_permissions ( $mode, $permission_type, &$auth_admin, &$user_id, &$group_id ) Apply all permissions
set_permissions ( $mode, $permission_type, &$auth_admin, &$user_id, &$group_id ) Apply permissions

Method Details

build_permission_dropdown() public method

Build dropdown field for changing permission types
public build_permission_dropdown ( $options, $default_option, $permission_scope )

build_subforum_options() public method

Build +subforum options
public build_subforum_options ( $forum_list )

check_assigned_role() public method

Compare auth settings with auth settings from role returns false if they differ, true if they are equal
public check_assigned_role ( $role_id, &$auth_settings )

check_existence() public method

Check if selected items exist. Remove not found ids and if empty return error.
public check_existence ( $mode, &$ids )

copy_forum_permissions() public method

Handles copying permissions from one forum to others

log_action() public method

Log permission changes
public log_action ( $mode, $action, $permission_type, $ug_type, $ug_id, $forum_id )

main() public method

public main ( $id, $mode )

permission_trace() public method

Display a complete trace tree for the selected permission to determine where settings are set/unset
public permission_trace ( $user_id, $forum_id, $permission )

remove_permissions() public method

Remove permissions
public remove_permissions ( $mode, $permission_type, &$auth_admin, &$user_id, &$group_id, &$forum_id )

retrieve_defined_user_groups() public method

Get already assigned users/groups
public retrieve_defined_user_groups ( $permission_scope, $forum_id, $permission_type )

set_all_permissions() public method

Apply all permissions
public set_all_permissions ( $mode, $permission_type, &$auth_admin, &$user_id, &$group_id )

set_permissions() public method

Apply permissions
public set_permissions ( $mode, $permission_type, &$auth_admin, &$user_id, &$group_id )

Property Details

$permission_dropdown public_oe property

public $permission_dropdown

$permissions protected_oe property

protected $permissions

$u_action public_oe property

public $u_action