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