[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

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

   1  <?php
   2  
   3  namespace dokuwiki\Parsing\ParserMode;
   4  
   5  class Windowssharelink extends AbstractMode
   6  {
   7  
   8      protected $pattern;
   9  
  10      /** @inheritdoc */
  11      public function preConnect()
  12      {
  13          $this->pattern = "\\\\\\\\\w+?(?:\\\\[\w\-$]+)+";
  14      }
  15  
  16      /** @inheritdoc */
  17      public function connectTo($mode)
  18      {
  19          $this->Lexer->addSpecialPattern(
  20              $this->pattern,
  21              $mode,
  22              'windowssharelink'
  23          );
  24      }
  25  
  26      /** @inheritdoc */
  27      public function getSort()
  28      {
  29          return 350;
  30      }
  31  }