1<?php 2/** 3 * DokuWiki Plugin structsection (Action Component) 4 */ 5// must be run within Dokuwiki 6use dokuwiki\plugin\structgroup\meta\ApplicationAspectKernel; 7 8if (!defined('DOKU_INC')) die(); 9 10class action_plugin_structgroup extends DokuWiki_Action_Plugin { 11 /** 12 * Registers a callback function for a given event 13 * 14 * @param Doku_Event_Handler $controller DokuWiki's event controller object 15 * @return void 16 */ 17 public function register(Doku_Event_Handler $controller) { 18 $controller->register_hook('PLUGIN_STRUCT_TYPECLASS_INIT', 'BEFORE', $this, 'handle_init'); 19 } 20 21 public function handle_init(Doku_Event &$event, $param) { 22 $event->data['Group'] = 'dokuwiki\\plugin\\structgroup\\types\\Group'; 23 } 24} 25// vim:ts=4:sw=4:et: