1<?php 2 3use dokuwiki\Extension\ActionPlugin; 4use dokuwiki\Extension\EventHandler; 5use dokuwiki\Extension\Event; 6 7/** 8 * Plugin for testing the test system 9 * 10 * This plugin doesn't really do anything and should always be disabled 11 * 12 * @author Tobias Sarnowski <tobias@trustedco.de> 13 */ 14class action_plugin_testing extends ActionPlugin 15{ 16 17 /** @inheritdoc */ 18 public function register(EventHandler $controller) 19 { 20 $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); 21 } 22 23 public function dokuwikiStarted() 24 { 25 $param = []; 26 Event::createAndTrigger('TESTING_PLUGIN_INSTALLED', $param); 27 msg('The testing plugin is enabled and should be disabled.', -1); 28 } 29} 30