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 return AUTH_READ; 26 } 27 28 /** @inheritdoc */ 29 public function preProcess() 30 { 31 global $ID; 32 unlock($ID); 33 } 34 35 /** @inheritdoc */ 36 public function tplContent() 37 { 38 (new PageView())->show(); 39 } 40} 41