ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Parser.php File Reference

Go to the source code of this file.

Data Structures

class  Parser
 
class  OnlyIncludeReplacer
 
class  StripState
 

Variables

const MW_PARSER_VERSION '1.6.1'
 Update this version number when the ParserOutput format changes in an incompatible way, so the parser cache can automatically discard old data. More...
 
const RLH_FOR_UPDATE 1
 
const OT_HTML 1
 
const OT_WIKI 2
 
const OT_MSG 3
 
const OT_PREPROCESS 4
 
const SFH_NO_HASH 1
 
const STRIP_COMMENTS 'HTMLCommentStrip'
 
const HTTP_PROTOCOLS 'http:\/\/|https:\/\/'
 
const EXT_LINK_URL_CLASS '[^][<>"\\x00-\\x20\\x7F]'
 
const EXT_LINK_TEXT_CLASS '[^\]\\x0a\\x0d]'
 
const EXT_IMAGE_FNAME_CLASS '[A-Za-z0-9_.,~%\\-+&;#*?!=()@\\x80-\\xFF]'
 
const EXT_IMAGE_EXTENSIONS 'gif|png|jpg|jpeg'
 
const EXT_LINK_BRACKETED '/\[(\b(' . wfUrlProtocols() . ')' . EXT_LINK_URL_CLASS . '+) *(' . EXT_LINK_TEXT_CLASS . '*?)\]/S'
 
const EXT_IMAGE_REGEX '/^(' . HTTP_PROTOCOLS . ')' . # Protocol '(' . EXT_LINK_URL_CLASS . '+)\\/' . # Hostname and path '(' . EXT_IMAGE_FNAME_CLASS . '+)\\.((?i)' . EXT_IMAGE_EXTENSIONS . ')$/S' # Filename
 
const MW_COLON_STATE_TEXT 0
 
const MW_COLON_STATE_TAG 1
 
const MW_COLON_STATE_TAGSTART 2
 
const MW_COLON_STATE_CLOSETAG 3
 
const MW_COLON_STATE_TAGSLASH 4
 
const MW_COLON_STATE_COMMENT 5
 
const MW_COLON_STATE_COMMENTDASH 6
 
const MW_COLON_STATE_COMMENTDASHDASH 7
 

Variable Documentation

◆ EXT_IMAGE_EXTENSIONS

const EXT_IMAGE_EXTENSIONS 'gif|png|jpg|jpeg'

Definition at line 39 of file Parser.php.

◆ EXT_IMAGE_FNAME_CLASS

const EXT_IMAGE_FNAME_CLASS '[A-Za-z0-9_.,~%\\-+&;#*?!=()@\\x80-\\xFF]'

Definition at line 38 of file Parser.php.

◆ EXT_IMAGE_REGEX

const EXT_IMAGE_REGEX '/^(' . HTTP_PROTOCOLS . ')' . # Protocol '(' . EXT_LINK_URL_CLASS . '+)\\/' . # Hostname and path '(' . EXT_IMAGE_FNAME_CLASS . '+)\\.((?i)' . EXT_IMAGE_EXTENSIONS . ')$/S' # Filename

Definition at line 42 of file Parser.php.

Referenced by Parser\magicLinkCallback().

◆ EXT_LINK_BRACKETED

const EXT_LINK_BRACKETED '/\[(\b(' . wfUrlProtocols() . ')' . EXT_LINK_URL_CLASS . '+) *(' . EXT_LINK_TEXT_CLASS . '*?)\]/S'

Definition at line 40 of file Parser.php.

Referenced by Parser\magicLinkCallback().

◆ EXT_LINK_TEXT_CLASS

const EXT_LINK_TEXT_CLASS '[^\]\\x0a\\x0d]'

Definition at line 37 of file Parser.php.

◆ EXT_LINK_URL_CLASS

const EXT_LINK_URL_CLASS '[^][<>"\\x00-\\x20\\x7F]'

Definition at line 35 of file Parser.php.

Referenced by Parser\magicLinkCallback().

◆ HTTP_PROTOCOLS

const HTTP_PROTOCOLS 'http:\/\/|https:\/\/'

Definition at line 33 of file Parser.php.

◆ MW_COLON_STATE_CLOSETAG

const MW_COLON_STATE_CLOSETAG 3

Definition at line 51 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_COLON_STATE_COMMENT

const MW_COLON_STATE_COMMENT 5

Definition at line 53 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_COLON_STATE_COMMENTDASH

const MW_COLON_STATE_COMMENTDASH 6

Definition at line 54 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_COLON_STATE_COMMENTDASHDASH

const MW_COLON_STATE_COMMENTDASHDASH 7

Definition at line 55 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_COLON_STATE_TAG

const MW_COLON_STATE_TAG 1

Definition at line 49 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_COLON_STATE_TAGSLASH

const MW_COLON_STATE_TAGSLASH 4

Definition at line 52 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_COLON_STATE_TAGSTART

const MW_COLON_STATE_TAGSTART 2

Definition at line 50 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_COLON_STATE_TEXT

const MW_COLON_STATE_TEXT 0

Definition at line 48 of file Parser.php.

Referenced by Parser\closeList().

◆ MW_PARSER_VERSION

const MW_PARSER_VERSION '1.6.1'

Update this version number when the ParserOutput format changes in an incompatible way, so the parser cache can automatically discard old data.

Definition at line 13 of file Parser.php.

◆ OT_HTML

const OT_HTML 1

Definition at line 18 of file Parser.php.

Referenced by Parser\fetchScaryTemplateMaybeFromCache(), and Parser\setOutputType().

◆ OT_MSG

const OT_MSG 3

◆ OT_PREPROCESS

const OT_PREPROCESS 4

Definition at line 21 of file Parser.php.

Referenced by Parser\fetchScaryTemplateMaybeFromCache(), and Parser\setOutputType().

◆ OT_WIKI

const OT_WIKI 2

◆ RLH_FOR_UPDATE

const RLH_FOR_UPDATE 1

Definition at line 15 of file Parser.php.

Referenced by Parser\fetchScaryTemplateMaybeFromCache().

◆ SFH_NO_HASH

const SFH_NO_HASH 1

Definition at line 24 of file Parser.php.

Referenced by Parser\fetchScaryTemplateMaybeFromCache().

◆ STRIP_COMMENTS

const STRIP_COMMENTS 'HTMLCommentStrip'

Definition at line 30 of file Parser.php.