[ Index ] |
PHP Cross Reference of DokuWiki |
[Summary view] [Print] [Text view]
1 <?php 2 3 namespace dokuwiki\Parsing\ParserMode; 4 5 class Quote extends AbstractMode 6 { 7 8 /** 9 * Quote constructor. 10 */ 11 public function __construct() 12 { 13 global $PARSER_MODES; 14 15 $this->allowedModes = array_merge( 16 $PARSER_MODES['formatting'], 17 $PARSER_MODES['substition'], 18 $PARSER_MODES['disabled'], 19 $PARSER_MODES['protected'] 20 ); 21 } 22 23 /** @inheritdoc */ 24 public function connectTo($mode) 25 { 26 $this->Lexer->addEntryPattern('\n>{1,}', $mode, 'quote'); 27 } 28 29 /** @inheritdoc */ 30 public function postConnect() 31 { 32 $this->Lexer->addPattern('\n>{1,}', 'quote'); 33 $this->Lexer->addExitPattern('\n', 'quote'); 34 } 35 36 /** @inheritdoc */ 37 public function getSort() 38 { 39 return 220; 40 } 41 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body