1a3f6fae6SAndreas Gohr<?php 2a3f6fae6SAndreas Gohr 3a3f6fae6SAndreas Gohrnamespace dokuwiki\Action; 4a3f6fae6SAndreas Gohr 579a2d784SGerrit Uitslaguse dokuwiki\Extension\Event; 679a2d784SGerrit Uitslag 7a3f6fae6SAndreas Gohr/** 8a3f6fae6SAndreas Gohr * Class Plugin 9a3f6fae6SAndreas Gohr * 10a3f6fae6SAndreas Gohr * Used to run action plugins 11a3f6fae6SAndreas Gohr * 12a3f6fae6SAndreas Gohr * @package dokuwiki\Action 13a3f6fae6SAndreas Gohr */ 148c7c53b0SAndreas Gohrclass Plugin extends AbstractAction 158c7c53b0SAndreas Gohr{ 16a3f6fae6SAndreas Gohr 17a3f6fae6SAndreas Gohr /** @inheritdoc */ 18*d868eb89SAndreas Gohr public function minimumPermission() 19*d868eb89SAndreas Gohr { 20a3f6fae6SAndreas Gohr return AUTH_NONE; 21a3f6fae6SAndreas Gohr } 22a3f6fae6SAndreas Gohr 23a3f6fae6SAndreas Gohr /** 24a3f6fae6SAndreas Gohr * Outputs nothing but a warning unless an action plugin overwrites it 25a3f6fae6SAndreas Gohr * 26a3f6fae6SAndreas Gohr * @inheritdoc 27a3f6fae6SAndreas Gohr * @triggers TPL_ACT_UNKNOWN 28a3f6fae6SAndreas Gohr */ 29*d868eb89SAndreas Gohr public function tplContent() 30*d868eb89SAndreas Gohr { 3179a2d784SGerrit Uitslag $evt = new Event('TPL_ACT_UNKNOWN', $this->actionname); 32a3f6fae6SAndreas Gohr if($evt->advise_before()) { 33a3f6fae6SAndreas Gohr msg('Failed to handle action: ' . hsc($this->actionname), -1); 34a3f6fae6SAndreas Gohr } 35a3f6fae6SAndreas Gohr $evt->advise_after(); 36a3f6fae6SAndreas Gohr } 37a3f6fae6SAndreas Gohr} 38