1<?php
2/**
3 * DokuWiki Plugin git (Admin Component)
4 */
5
6// must be run within Dokuwiki
7if (!defined('DOKU_INC')) die();
8if (!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
9
10require_once(DOKU_PLUGIN.'admin.php');
11
12class admin_plugin_git extends DokuWiki_Admin_Plugin {
13
14    function getInfo() {
15        return confToHash(dirname(__FILE__).'plugin.info.txt');
16    }
17
18    function getMenuSort() { return 1; }
19    function forAdminOnly() { return true; }
20
21    function handle() {
22
23    }
24
25    function html() {
26
27       echo '<h2>Short:</h2><p>The GIT plugin already refreshes all Data-Plugin data. You can refresh as often as you like!</p>';
28
29       echo '<h2>Long:</h2><p>The data plugin allows some really nice useability features, like tag clouds and applying the user selection of an item in that tag-cloud to a table as a filter.';
30       echo 'The GIT plugin honers that and will refresh the entries when merging changes from other branches. However... When merging in changes outside of the wiki, the data doesnt get updates. Therefore the GIT plugin allows you to refresh the data with the click of a button!';
31       echo 'This is also to cover up any bugs in the plugin that prevent the refresh to happen as it should :-)';
32
33       echo '<form method="post">';
34       echo '  <input type="submit" name="cmd[refresh_data_plugin_data]"  value="Refresh Data plugin data" />';
35       echo '</form><br/>';
36
37  }
38
39}
40
41// vim:ts=4:sw=4:et:
42