You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
707 B

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