1<?php
2/**
3 * DokuWiki Plugin structnumber (Action Component)
4 *
5 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6 * @author  saggi <saggi@gmx.de>
7 */
8
9class action_plugin_structnumber extends \dokuwiki\Extension\ActionPlugin {
10    /**
11     * Registers a callback function for a given event
12     *
13     * @param Doku_Event_Handler $controller DokuWiki's event controller object
14     * @return void
15     */
16  public function register(Doku_Event_Handler $controller) {
17    $controller->register_hook('PLUGIN_STRUCT_TYPECLASS_INIT', 'BEFORE', $this, 'handle_init');
18  }
19
20  public function handle_init(Doku_Event &$event, $param) {
21    $event->data['Number'] = 'dokuwiki\\plugin\\structnumber\\types\\Number';
22  }
23}
24
25