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{ 16e8b5a4f9SAndreas Gohr 173dc2d50cSAndreas Gohr /** @inheritdoc */ 18*d868eb89SAndreas Gohr public function register(EventHandler $controller) 19*d868eb89SAndreas Gohr { 20f693efbcSTobias Sarnowski $controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'dokuwikiStarted'); 21f693efbcSTobias Sarnowski } 22f693efbcSTobias Sarnowski 23*d868eb89SAndreas Gohr public function dokuwikiStarted() 24*d868eb89SAndreas Gohr { 2554cc7aa4SAndreas Gohr $param = []; 26cbb44eabSAndreas Gohr Event::createAndTrigger('TESTING_PLUGIN_INSTALLED', $param); 2723684d4aSAndreas Gohr msg('The testing plugin is enabled and should be disabled.', -1); 28f693efbcSTobias Sarnowski } 29f693efbcSTobias Sarnowski} 30