source: documentation/trunk/packages/dokuwiki-2011-05-25a/lib/plugins/admin.php@ 30098

Last change on this file since 30098 was 25027, checked in by jmt12, 12 years ago

Adding the packages directory, and within it a configured version of dokuwiki all ready to run

File size: 1.0 KB
Line 
1<?php
2/**
3 * Admin Plugin Prototype
4 *
5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author Christopher Smith <[email protected]>
7 */
8// must be run within Dokuwiki
9if(!defined('DOKU_INC')) die();
10
11/**
12 * All DokuWiki plugins to extend the admin function
13 * need to inherit from this class
14 */
15class DokuWiki_Admin_Plugin extends DokuWiki_Plugin {
16
17 function getMenuText($language) {
18 $menutext = $this->getLang('menu');
19 if (!$menutext) {
20 $info = $this->getInfo();
21 $menutext = $info['name'].' ...';
22 }
23 return $menutext;
24 }
25
26 function getMenuSort() {
27 return 1000;
28 }
29
30 function handle() {
31 trigger_error('handle() not implemented in '.get_class($this), E_USER_WARNING);
32 }
33
34 function html() {
35 trigger_error('html() not implemented in '.get_class($this), E_USER_WARNING);
36 }
37
38 function forAdminOnly() {
39 return true;
40 }
41
42 function getTOC(){
43 return array();
44 }
45}
46//Setup VIM: ex: et ts=4 :
Note: See TracBrowser for help on using the repository browser.