1<?php 2if(!defined('DOKU_INC')) { 3 define('DOKU_INC', /** @scrutinizer ignore-type */ realpath(dirname(__FILE__).'/../../../').'/'); 4} 5if(!defined('DOKU_PLUGIN')) { 6 define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/'); 7} 8require_once(DOKU_PLUGIN.'admin.php'); 9 10/** 11 * All DokuWiki plugins to extend the admin function 12 * need to inherit from this class 13 */ 14class admin_plugin_siteexport extends DokuWiki_Admin_Plugin { 15 16 /** 17 * Constructor 18 */ 19 public function __construct() { 20 $this->setupLocale(); 21 } 22 23 /** 24 * return sort order for position in admin menu 25 */ 26 public function getMenuSort() { 27 return 100; 28 } 29 30 public function forAdminOnly() { 31 return false; 32 } 33 34 /** 35 * handle user request 36 */ 37 public function handle() { 38 } 39 40 /** 41 * output appropriate html 42 */ 43 public function html() { 44 45 if (!$functions = & plugin_load('helper', 'siteexport')) { 46 msg("Can't initialize"); 47 return false; 48 } 49 50 $functions->__siteexport_addpage(); 51 } 52} 53//Setup VIM: ex: et ts=4 enc=utf-8 : 54