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