[ 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: 874 lines (28 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()
  getLinkOptions()
  makeExplorer()
  makeTree()
  treeSort()
  printDetail()
  printInfo()
  printAclEditor()
  printExplanation()
  makeTreeItem()
  makeListItem()
  initAclConfig()
  printAclTable()
  getExactPermisson()
  addOrUpdateACL()
  deleteACL()
  makeCheckboxes()
  makeSelect()


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>

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

author: Andreas Gohr <andi@splitbrain.org>

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

author: Andreas Gohr <andi@splitbrain.org>

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

also called via AJAX

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

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

Sorts the combined trees of media and page files

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

author: Andreas Gohr <andi@splitbrain.org>

printInfo()   X-Ref
Print info and editor

also loaded via Ajax

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

author: Andreas Gohr <andi@splitbrain.org>

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

author: Andreas Gohr <andi@splitbrain.org>

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

User function for html_buildlist()

author: Andreas Gohr <andi@splitbrain.org>

makeListItem($item)   X-Ref
List Item formatter

param: array $item
return: string

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

author: Andreas Gohr <andi@splitbrain.org>

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

author: Andreas Gohr <andi@splitbrain.org>

getExactPermisson()   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>

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

author: Frank Schubert <frank@schokilade.de>

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

author: Frank Schubert <frank@schokilade.de>

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

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

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

author: Andreas Gohr <andi@splitbrain.org>