1<?php 2/** 3 * Plugin for testing the test system 4 * 5 * This plugin doesn't really do anything and should always be disabled 6 * 7 * @author Tobias Sarnowski <tobias@trustedco.de> 8 */ 9class action_plugin_testing extends DokuWiki_Action_Plugin { 10 11 /** @inheritdoc */ 12 public function register(Doku_Event_Handler $controller) { 13 $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); 14 } 15 16 public function dokuwikiStarted() { 17 $param = array(); 18 trigger_event('TESTING_PLUGIN_INSTALLED', $param); 19 msg('The testing plugin is enabled and should be disabled.',-1); 20 } 21} 22