[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace dokuwiki\Action; 4 5 use dokuwiki\Ui; 6 7 /** 8 * Class Source 9 * 10 * Show the source of a page 11 * 12 * @package dokuwiki\Action 13 */ 14 class Source extends AbstractAction 15 { 16 /** @inheritdoc */ 17 public function minimumPermission() 18 { 19 return AUTH_READ; 20 } 21 22 /** @inheritdoc */ 23 public function preProcess() 24 { 25 global $TEXT; 26 global $INFO; 27 global $ID; 28 global $REV; 29 30 if ($INFO['exists']) { 31 $TEXT = rawWiki($ID, $REV); 32 } 33 } 34 35 /** @inheritdoc */ 36 public function tplContent() 37 { 38 (new Ui\Editor)->show(); 39 } 40 41 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body