AbstractAliasAction.php 695 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace dokuwiki\Action;
  3. use dokuwiki\Action\Exception\FatalException;
  4. /**
  5. * Class AbstractAliasAction
  6. *
  7. * An action that is an alias for another action. Skips the minimumPermission check
  8. *
  9. * Be sure to implement preProcess() and throw an ActionAbort exception
  10. * with the proper action.
  11. *
  12. * @package dokuwiki\Action
  13. */
  14. abstract class AbstractAliasAction extends AbstractAction {
  15. /** @inheritdoc */
  16. public function minimumPermission() {
  17. return AUTH_NONE;
  18. }
  19. /**
  20. * @throws FatalException
  21. */
  22. public function preProcess() {
  23. throw new FatalException('Alias Actions need to implement preProcess to load the aliased action');
  24. }
  25. }