1<?php
2/**
3 * DokuWiki Plugin bez (Action Component)
4 *
5 */
6
7// must be run within Dokuwiki
8if(!defined('DOKU_INC')) die();
9
10class action_plugin_bez_struct extends DokuWiki_Action_Plugin {
11
12    /**
13     * Registers a callback function for a given event
14     *
15     * @param Doku_Event_Handler $controller DokuWiki's event controller object
16     * @return void
17     */
18    public function register(Doku_Event_Handler $controller)
19    {
20        $controller->register_hook('PLUGIN_STRUCT_TYPECLASS_INIT', 'BEFORE', $this, 'handle_init');
21    }
22
23    /**
24     * [Custom event handler which performs action]
25     *
26     * @param Doku_Event $event  event object by reference
27     * @param mixed      $param  [the parameters passed as fifth argument to register_hook() when this
28     *                           handler was registered]
29     * @return void
30     */
31    public function handle_init(Doku_Event &$event, $param) {
32        $event->data['Bez'] = 'dokuwiki\\plugin\\bez\\struct\\BezType';
33    }
34}
35