1<?php 2/** 3 * DokuWiki Plugin structprogress (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_structprogress extends DokuWiki_Action_Plugin { 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['Progress'] = 'dokuwiki\\plugin\\structprogress\\types\\Progress'; 22 } 23} 24 25