Show.php 586 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Created by IntelliJ IDEA.
  4. * User: andi
  5. * Date: 2/10/17
  6. * Time: 4:32 PM
  7. */
  8. namespace dokuwiki\Action;
  9. use dokuwiki\Ui;
  10. /**
  11. * Class Show
  12. *
  13. * The default action of showing a page
  14. *
  15. * @package dokuwiki\Action
  16. */
  17. class Show extends AbstractAction
  18. {
  19. /** @inheritdoc */
  20. public function minimumPermission() {
  21. return AUTH_READ;
  22. }
  23. /** @inheritdoc */
  24. public function preProcess()
  25. {
  26. global $ID;
  27. unlock($ID);
  28. }
  29. /** @inheritdoc */
  30. public function tplContent()
  31. {
  32. (new Ui\PageView())->show();
  33. }
  34. }