[ 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: 744 lines (23 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 2 files
 inc/search.php
 lib/plugins/acl/admin.php

Defines 1 class

admin_plugin_acl:: (21 methods):
  getInfo()
  getMenuText()
  getMenuSort()
  handle()
  html()
  _get_opts()
  _html_explorer()
  _html_detail()
  _html_info()
  _html_acleditor()
  _html_explain()
  _html_list_acl()
  _html_li_acl()
  _init_acl_config()
  _sort_names()
  _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

getInfo()   X-Ref
return some info


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>

_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 infos 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>

_sort_names($a,$b)   X-Ref
Custom function to sort the ACLs by namespace names


_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>



Generated: Tue Dec 2 01:30:01 2008 Cross-referenced by PHPXref 0.7