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