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.
 
 
 
 
 

33 lines
701 B

  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. {
  16. /** @inheritdoc */
  17. public function minimumPermission()
  18. {
  19. return AUTH_NONE;
  20. }
  21. /**
  22. * @throws FatalException
  23. */
  24. public function preProcess()
  25. {
  26. throw new FatalException('Alias Actions need to implement preProcess to load the aliased action');
  27. }
  28. }