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