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