[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/lib/plugins/acl/ -> admin.php (summary)

ACL administration functions

Author: Andreas Gohr
Author: Anika Henke (concepts)
Author: Frank Schubert (old version)
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 815 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

admin_plugin_acl:: (21 methods):
  getMenuText()
  getMenuSort()
  handle()
  html()
  _get_opts()
  _html_explorer()
  _get_tree()
  _tree_sort()
  _html_detail()
  _html_info()
  _html_acleditor()
  _html_explain()
  _html_list_acl()
  _html_li_acl()
  _init_acl_config()
  _html_table()
  _get_exact_perm()
  _acl_add()
  _acl_del()
  _html_checkboxes()
  _html_select()


Class: admin_plugin_acl  - X-Ref

All DokuWiki plugins to extend the admin function
need to inherit from this class

getMenuText($language)   X-Ref
return prompt for admin menu


getMenuSort()   X-Ref
return sort order for position in admin menu


handle()   X-Ref
handle user request

Initializes internal vars and handles modifications

author: Andreas Gohr <andi@splitbrain.org>

html()   X-Ref
ACL Output function

print a table with all significant permissions for the
current id

author: Frank Schubert <frank@schokilade.de>
author: Andreas Gohr <andi@splitbrain.org>

_get_opts($addopts=null)   X-Ref
returns array with set options for building links

author: Andreas Gohr <andi@splitbrain.org>

_html_explorer()   X-Ref
Display a tree menu to select a page or namespace

author: Andreas Gohr <andi@splitbrain.org>

_get_tree($folder,$limit='')   X-Ref
get a combined list of media and page files

param: string $folder an already converted filesystem folder of the current namespace
param: string $limit  limit the search to this folder

_tree_sort($a,$b)   X-Ref
usort callback

Sorts the combined trees of media and page files

_html_detail()   X-Ref
Display the current ACL for selected where/who combination with
selectors and modification form

author: Andreas Gohr <andi@splitbrain.org>

_html_info()   X-Ref
Print info and editor


_html_acleditor($current)   X-Ref
Display the ACL editor

author: Andreas Gohr <andi@splitbrain.org>

_html_explain($current)   X-Ref
Explain the currently set permissions in plain english/$lang

author: Andreas Gohr <andi@splitbrain.org>

_html_list_acl($item)   X-Ref
Item formatter for the tree view

User function for html_buildlist()

author: Andreas Gohr <andi@splitbrain.org>

_html_li_acl($item)   X-Ref
No description

_init_acl_config()   X-Ref
Get current ACL settings as multidim array

author: Andreas Gohr <andi@splitbrain.org>

_html_table()   X-Ref
Display all currently set permissions in a table

author: Andreas Gohr <andi@splitbrain.org>

_get_exact_perm()   X-Ref
Returns the permission which were set for exactly the given user/group
and page/namespace. Returns null if no exact match is available

author: Andreas Gohr <andi@splitbrain.org>

_acl_add($acl_scope, $acl_user, $acl_level)   X-Ref
adds new acl-entry to conf/acl.auth.php

author: Frank Schubert <frank@schokilade.de>

_acl_del($acl_scope, $acl_user)   X-Ref
remove acl-entry from conf/acl.auth.php

author: Frank Schubert <frank@schokilade.de>

_html_checkboxes($setperm,$ispage,$name)   X-Ref
print the permission radio boxes

author: Frank Schubert <frank@schokilade.de>
author: Andreas Gohr <andi@splitbrain.org>

_html_select()   X-Ref
Print a user/group selector (reusing already used users and groups)

author: Andreas Gohr <andi@splitbrain.org>