xref: /dokuwiki/inc/Action/Show.php (revision d4f83172d9533c4d84f450fe22ef630816b21d75)
164ab5140SAndreas Gohr<?php
2*d4f83172SAndreas Gohr
364ab5140SAndreas Gohr/**
464ab5140SAndreas Gohr * Created by IntelliJ IDEA.
564ab5140SAndreas Gohr * User: andi
664ab5140SAndreas Gohr * Date: 2/10/17
764ab5140SAndreas Gohr * Time: 4:32 PM
864ab5140SAndreas Gohr */
964ab5140SAndreas Gohr
1064ab5140SAndreas Gohrnamespace dokuwiki\Action;
1164ab5140SAndreas Gohr
126723156fSAndreas Gohruse dokuwiki\Ui\PageView;
1360a48169SSatoshi Saharause dokuwiki\Ui;
1460a48169SSatoshi Sahara
15ab583a1bSAndreas Gohr/**
16ab583a1bSAndreas Gohr * Class Show
17ab583a1bSAndreas Gohr *
18ab583a1bSAndreas Gohr * The default action of showing a page
19ab583a1bSAndreas Gohr *
20ab583a1bSAndreas Gohr * @package dokuwiki\Action
21ab583a1bSAndreas Gohr */
2260a48169SSatoshi Saharaclass Show extends AbstractAction
2360a48169SSatoshi Sahara{
2464ab5140SAndreas Gohr    /** @inheritdoc */
25d868eb89SAndreas Gohr    public function minimumPermission()
26d868eb89SAndreas Gohr    {
2764ab5140SAndreas Gohr        return AUTH_READ;
2864ab5140SAndreas Gohr    }
2964ab5140SAndreas Gohr
30ab583a1bSAndreas Gohr    /** @inheritdoc */
3160a48169SSatoshi Sahara    public function preProcess()
3260a48169SSatoshi Sahara    {
33daa5910cSAndreas Gohr        global $ID;
34daa5910cSAndreas Gohr        unlock($ID);
35daa5910cSAndreas Gohr    }
36daa5910cSAndreas Gohr
37daa5910cSAndreas Gohr    /** @inheritdoc */
3860a48169SSatoshi Sahara    public function tplContent()
3960a48169SSatoshi Sahara    {
406723156fSAndreas Gohr        (new PageView())->show();
4164ab5140SAndreas Gohr    }
4264ab5140SAndreas Gohr}
43