Initial commit
This commit is contained in:
		
							
								
								
									
										25
									
								
								content/inc/Parsing/ParserMode/File.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								content/inc/Parsing/ParserMode/File.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace dokuwiki\Parsing\ParserMode;
 | 
			
		||||
 | 
			
		||||
class File extends AbstractMode
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function connectTo($mode)
 | 
			
		||||
    {
 | 
			
		||||
        $this->Lexer->addEntryPattern('<file\b(?=.*</file>)', $mode, 'file');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function postConnect()
 | 
			
		||||
    {
 | 
			
		||||
        $this->Lexer->addExitPattern('</file>', 'file');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /** @inheritdoc */
 | 
			
		||||
    public function getSort()
 | 
			
		||||
    {
 | 
			
		||||
        return 210;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user