[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Action/ -> Source.php (source)

   1  <?php
   2  
   3  namespace dokuwiki\Action;
   4  
   5  /**
   6   * Class Source
   7   *
   8   * Show the source of a page
   9   *
  10   * @package dokuwiki\Action
  11   */
  12  class Source extends AbstractAction {
  13  
  14      /** @inheritdoc */
  15      public function minimumPermission() {
  16          return AUTH_READ;
  17      }
  18  
  19      /** @inheritdoc */
  20      public function preProcess() {
  21          global $TEXT;
  22          global $INFO;
  23          global $ID;
  24          global $REV;
  25  
  26          if($INFO['exists']) {
  27              $TEXT = rawWiki($ID, $REV);
  28          }
  29      }
  30  
  31      /** @inheritdoc */
  32      public function tplContent() {
  33          html_edit();
  34      }
  35  
  36  }