xref: /dokuwiki/inc/Action/Show.php (revision daa5910cfb739e1f2f7f5d1112b645349c7a5c4b)
164ab5140SAndreas Gohr<?php
264ab5140SAndreas Gohr/**
364ab5140SAndreas Gohr * Created by IntelliJ IDEA.
464ab5140SAndreas Gohr * User: andi
564ab5140SAndreas Gohr * Date: 2/10/17
664ab5140SAndreas Gohr * Time: 4:32 PM
764ab5140SAndreas Gohr */
864ab5140SAndreas Gohr
964ab5140SAndreas Gohrnamespace dokuwiki\Action;
1064ab5140SAndreas Gohr
11ab583a1bSAndreas Gohr/**
12ab583a1bSAndreas Gohr * Class Show
13ab583a1bSAndreas Gohr *
14ab583a1bSAndreas Gohr * The default action of showing a page
15ab583a1bSAndreas Gohr *
16ab583a1bSAndreas Gohr * @package dokuwiki\Action
17ab583a1bSAndreas Gohr */
1864ab5140SAndreas Gohrclass Show extends AbstractAction {
1964ab5140SAndreas Gohr
2064ab5140SAndreas Gohr    /** @inheritdoc */
21ec701221SAndreas Gohr    public function minimumPermission() {
2264ab5140SAndreas Gohr        return AUTH_READ;
2364ab5140SAndreas Gohr    }
2464ab5140SAndreas Gohr
25ab583a1bSAndreas Gohr    /** @inheritdoc */
26*daa5910cSAndreas Gohr    public function preProcess() {
27*daa5910cSAndreas Gohr        global $ID;
28*daa5910cSAndreas Gohr        unlock($ID);
29*daa5910cSAndreas Gohr    }
30*daa5910cSAndreas Gohr
31*daa5910cSAndreas Gohr    /** @inheritdoc */
3264ab5140SAndreas Gohr    public function tplContent() {
3364ab5140SAndreas Gohr        html_show();
3464ab5140SAndreas Gohr    }
3564ab5140SAndreas Gohr
3664ab5140SAndreas Gohr}
37