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