1<?php 2/** 3 * DokuWiki Plugin structpublish (Admin Component) 4 * 5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 6 * @author Anna Dabrowska <dokuwiki@cosmocode.de> 7 */ 8 9class admin_plugin_structpublish extends DokuWiki_Admin_Plugin 10{ 11 /** 12 * @return int sort number in admin menu 13 */ 14 public function getMenuSort() 15 { 16 return 555; 17 } 18 19 /** 20 * @return bool true if only access for superuser, false is for superusers and moderators 21 */ 22 public function forAdminOnly() 23 { 24 return false; 25 } 26 27 /** 28 * Should carry out any processing required by the plugin. 29 */ 30 public function handle() 31 { 32 33 } 34 35 /** 36 * Render HTML output, e.g. helpful text and a form 37 */ 38 public function html() 39 { 40 ptln('<h1>' . $this->getLang('menu') . '</h1>'); 41 } 42} 43 44