xref: /plugin/searchindex/admin.php (revision 2a0afb61a73a397b1d1cccbae4f77e3b6bc98f04)
1dc6fce52SAndreas Gohr<?php
2dc6fce52SAndreas Gohrif(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../../').'/');
3dc6fce52SAndreas Gohrif(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
4dc6fce52SAndreas Gohrrequire_once(DOKU_PLUGIN.'admin.php');
5dc6fce52SAndreas Gohr
6dc6fce52SAndreas Gohr/**
7dc6fce52SAndreas Gohr * All DokuWiki plugins to extend the admin function
8dc6fce52SAndreas Gohr * need to inherit from this class
9dc6fce52SAndreas Gohr */
10dc6fce52SAndreas Gohrclass admin_plugin_searchindex extends DokuWiki_Admin_Plugin {
11dc6fce52SAndreas Gohr    var $cmd;
12dc6fce52SAndreas Gohr
13dc6fce52SAndreas Gohr    /**
14dc6fce52SAndreas Gohr     * return sort order for position in admin menu
15dc6fce52SAndreas Gohr     */
16dc6fce52SAndreas Gohr    function getMenuSort() {
17dc6fce52SAndreas Gohr        return 40;
18dc6fce52SAndreas Gohr    }
19dc6fce52SAndreas Gohr
20dc6fce52SAndreas Gohr    /**
21dc6fce52SAndreas Gohr     * handle user request
22dc6fce52SAndreas Gohr     */
23dc6fce52SAndreas Gohr    function handle() {
24dc6fce52SAndreas Gohr    }
25dc6fce52SAndreas Gohr
26dc6fce52SAndreas Gohr    /**
27dc6fce52SAndreas Gohr     * output appropriate html
28dc6fce52SAndreas Gohr     */
29dc6fce52SAndreas Gohr    function html() {
30*2a0afb61SAndreas Gohr        echo $this->plugin_locale_xhtml('intro');
31dc6fce52SAndreas Gohr
32dc6fce52SAndreas Gohr
33*2a0afb61SAndreas Gohr        echo '<div id="plugin__searchindex">';
34*2a0afb61SAndreas Gohr        echo $this->getLang('nojs');
35*2a0afb61SAndreas Gohr        echo '</div>';
36dc6fce52SAndreas Gohr
37dc6fce52SAndreas Gohr    }
38dc6fce52SAndreas Gohr
39dc6fce52SAndreas Gohr
40dc6fce52SAndreas Gohr}
41dc6fce52SAndreas Gohr//Setup VIM: ex: et ts=4 enc=utf-8 :
42