[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

Configuration Manager admin plugin

Author: Christopher Smith
Author: Ben Coburn
License: GPL 2 (http://www.gnu.org/licenses/gpl.html)
File Size: 292 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

admin_plugin_config:: (7 methods):
  handle()
  html()
  settingNaturalComparison()
  setupLocale()
  getTOC()
  printH1()
  addLang()


Class: admin_plugin_config  - X-Ref

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

handle()   X-Ref
handle user request


html()   X-Ref
output appropriate html


settingNaturalComparison($a, $b)   X-Ref
Callback for sorting settings

param: Setting $a
param: Setting $b
return: int if $a is lower/equal/higher than $b

setupLocale($prompts = false)   X-Ref

param: bool $prompts

getTOC()   X-Ref
Generates a two-level table of contents for the config plugin.

author: Ben Coburn <btcoburn@silicodon.net>
return: array

printH1($id, $text)   X-Ref

param: string $id
param: string $text

addLang($key, $value)   X-Ref
Adds a translation to this plugin's language array

Used by some settings to set up dynamic translations

param: string $key
param: string $value