xref: /plugin/structsection/action.php (revision 9d2d02ff8e781b14500d566ea8833577db6de587)
1*9d2d02ffSMichael Große<?php
2*9d2d02ffSMichael Große/**
3*9d2d02ffSMichael Große * DokuWiki Plugin structwiki (Action Component)
4*9d2d02ffSMichael Große *
5*9d2d02ffSMichael Große * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6*9d2d02ffSMichael Große * @author  Michael Große <mic.grosse@googlemail.com>
7*9d2d02ffSMichael Große */
8*9d2d02ffSMichael Große
9*9d2d02ffSMichael Große// must be run within Dokuwiki
10*9d2d02ffSMichael Großeif(!defined('DOKU_INC')) die();
11*9d2d02ffSMichael Große
12*9d2d02ffSMichael Großeclass action_plugin_structwiki extends DokuWiki_Action_Plugin {
13*9d2d02ffSMichael Große
14*9d2d02ffSMichael Große    /**
15*9d2d02ffSMichael Große     * Registers a callback function for a given event
16*9d2d02ffSMichael Große     *
17*9d2d02ffSMichael Große     * @param Doku_Event_Handler $controller DokuWiki's event controller object
18*9d2d02ffSMichael Große     * @return void
19*9d2d02ffSMichael Große     */
20*9d2d02ffSMichael Große    public function register(Doku_Event_Handler $controller) {
21*9d2d02ffSMichael Große
22*9d2d02ffSMichael Große       $controller->register_hook('TPL_CONTENT_DISPLAY', 'FIXME', $this, 'handle_tpl_content_display');
23*9d2d02ffSMichael Große
24*9d2d02ffSMichael Große    }
25*9d2d02ffSMichael Große
26*9d2d02ffSMichael Große    /**
27*9d2d02ffSMichael Große     * [Custom event handler which performs action]
28*9d2d02ffSMichael Große     *
29*9d2d02ffSMichael Große     * @param Doku_Event $event  event object by reference
30*9d2d02ffSMichael Große     * @param mixed      $param  [the parameters passed as fifth argument to register_hook() when this
31*9d2d02ffSMichael Große     *                           handler was registered]
32*9d2d02ffSMichael Große     * @return void
33*9d2d02ffSMichael Große     */
34*9d2d02ffSMichael Große
35*9d2d02ffSMichael Große    public function handle_tpl_content_display(Doku_Event &$event, $param) {
36*9d2d02ffSMichael Große    }
37*9d2d02ffSMichael Große
38*9d2d02ffSMichael Große}
39*9d2d02ffSMichael Große
40*9d2d02ffSMichael Große// vim:ts=4:sw=4:et:
41