1<?php 2 3use dokuwiki\Extension\ActionPlugin; 4use dokuwiki\Extension\EventHandler; 5use dokuwiki\Extension\Event; 6 7/** 8 * DokuWiki Plugin addmedianamespace (Action Component) 9 * 10 * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html 11 * @author Jakub Majcherski <jakub@majcherski.com> 12 */ 13class action_plugin_addmedianamespace extends ActionPlugin 14{ 15 /** @inheritDoc */ 16 public function register(EventHandler $controller) 17 { 18 $controller->register_hook('MEDIAMANAGER_STARTED', 'AFTER', $this, 'handleMediamanagerStarted'); 19 20 } 21 22 23 /** 24 * Event handler for MEDIAMANAGER_STARTED 25 * 26 * @see https://www.dokuwiki.org/devel:events:MEDIAMANAGER_STARTED 27 * @param Event $event Event object 28 * @param mixed $param optional parameter passed when event was registered 29 * @return void 30 */ 31 public function handleMediamanagerStarted(Event $event, $param) 32 { 33 } 34 35} 36