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\PageView; 12use dokuwiki\Ui; 13 14/** 15 * Class Show 16 * 17 * The default action of showing a page 18 * 19 * @package dokuwiki\Action 20 */ 21class Show extends AbstractAction 22{ 23 /** @inheritdoc */ 24 public function minimumPermission() 25 { 26 return AUTH_READ; 27 } 28 29 /** @inheritdoc */ 30 public function preProcess() 31 { 32 global $ID; 33 unlock($ID); 34 } 35 36 /** @inheritdoc */ 37 public function tplContent() 38 { 39 (new PageView())->show(); 40 } 41} 42