segundo commit para testar
[LogadorPet.git] / wiki / lib / plugins / admin.php
blob2eeda3f7b9be81c922e1f8385851e397b1c1edb1
1 <?php
2 /**
3 * Admin Plugin Prototype
5 * @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
6 * @author Christopher Smith <chris@jalakai.co.uk>
7 */
8 // must be run within Dokuwiki
9 if(!defined('DOKU_INC')) die();
11 if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
12 require_once(DOKU_INC.'inc/plugin.php');
14 /**
15 * All DokuWiki plugins to extend the admin function
16 * need to inherit from this class
18 class DokuWiki_Admin_Plugin extends DokuWiki_Plugin {
20 function getMenuText($language) {
21 $menutext = $this->getLang('menu');
22 if (!$menutext) {
23 $info = $this->getInfo();
24 $menutext = $info['name'].' ...';
26 return $menutext;
29 function getMenuSort() {
30 return 1000;
33 function handle() {
34 trigger_error('handle() not implemented in '.get_class($this), E_USER_WARNING);
37 function html() {
38 trigger_error('html() not implemented in '.get_class($this), E_USER_WARNING);
41 function forAdminOnly() {
42 return true;
45 function getTOC(){
46 return array();
49 //Setup VIM: ex: et ts=4 enc=utf-8 :