PHP Класс acp_permissions

Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$permission_dropdown
$u_action

Защищенные свойства (Protected)

Свойство Тип Описание
$permissions

Открытые методы

Метод Описание
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

Описание методов

build_permission_dropdown() публичный Метод

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

build_subforum_options() публичный Метод

Build +subforum options
public build_subforum_options ( $forum_list )

check_assigned_role() публичный Метод

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() публичный Метод

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

copy_forum_permissions() публичный Метод

Handles copying permissions from one forum to others

log_action() публичный Метод

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

main() публичный Метод

public main ( $id, $mode )

permission_trace() публичный Метод

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() публичный Метод

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

retrieve_defined_user_groups() публичный Метод

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

set_all_permissions() публичный Метод

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

set_permissions() публичный Метод

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

Описание свойств

$permission_dropdown публичное свойство

public $permission_dropdown

$permissions защищенное свойство

protected $permissions

$u_action публичное свойство

public $u_action