[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Parsing/ParserMode/ -> File.php (source)

   1  <?php
   2  
   3  namespace dokuwiki\Parsing\ParserMode;
   4  
   5  class File extends AbstractMode
   6  {
   7      /** @inheritdoc */
   8      public function connectTo($mode)
   9      {
  10          $this->Lexer->addEntryPattern('<file\b(?=.*</file>)', $mode, 'file');
  11      }
  12  
  13      /** @inheritdoc */
  14      public function postConnect()
  15      {
  16          $this->Lexer->addExitPattern('</file>', 'file');
  17      }
  18  
  19      /** @inheritdoc */
  20      public function getSort()
  21      {
  22          return 210;
  23      }
  24  }