1f693efbcSTobias Sarnowski<?php 2cbb44eabSAndreas Gohr 38553d24dSAndreas Gohruse dokuwiki\Extension\ActionPlugin; 48553d24dSAndreas Gohruse dokuwiki\Extension\EventHandler; 5cbb44eabSAndreas Gohruse dokuwiki\Extension\Event; 6cbb44eabSAndreas Gohr 723684d4aSAndreas Gohr/** 823684d4aSAndreas Gohr * Plugin for testing the test system 923684d4aSAndreas Gohr * 1023684d4aSAndreas Gohr * This plugin doesn't really do anything and should always be disabled 1123684d4aSAndreas Gohr * 1223684d4aSAndreas Gohr * @author Tobias Sarnowski <tobias@trustedco.de> 1323684d4aSAndreas Gohr */ 148c7c53b0SAndreas Gohrclass action_plugin_testing extends ActionPlugin 158c7c53b0SAndreas Gohr{ 163dc2d50cSAndreas Gohr /** @inheritdoc */ 17*d868eb89SAndreas Gohr public function register(EventHandler $controller) 18*d868eb89SAndreas Gohr { 19f693efbcSTobias Sarnowski $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); 20f693efbcSTobias Sarnowski } 21f693efbcSTobias Sarnowski 22*d868eb89SAndreas Gohr public function dokuwikiStarted() 23*d868eb89SAndreas Gohr { 2454cc7aa4SAndreas Gohr $param = []; 25cbb44eabSAndreas Gohr Event::createAndTrigger('TESTING_PLUGIN_INSTALLED', $param); 2623684d4aSAndreas Gohr msg('The testing plugin is enabled and should be disabled.', -1); 27f693efbcSTobias Sarnowski } 28f693efbcSTobias Sarnowski} 29