PHP Class acp_permissions

Afficher le fichier Open project: phpbb/phpbb

Méthodes publiques

Свойство Type Description
$permission_dropdown
$u_action

Protected Properties

Свойство Type Description
$permissions

Méthodes publiques

Méthode 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 méthode

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

build_subforum_options() public méthode

Build +subforum options
public build_subforum_options ( $forum_list )

check_assigned_role() public méthode

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 méthode

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

copy_forum_permissions() public méthode

Handles copying permissions from one forum to others

log_action() public méthode

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

main() public méthode

public main ( $id, $mode )

permission_trace() public méthode

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 méthode

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

retrieve_defined_user_groups() public méthode

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

set_all_permissions() public méthode

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

set_permissions() public méthode

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