ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
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

const EXT_IMAGE_EXTENSIONS = 'gif|png|jpg|jpeg'

Definition at line 39 of file Parser.php.

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

Definition at line 38 of file Parser.php.

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.

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

Definition at line 40 of file Parser.php.

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

Definition at line 37 of file Parser.php.

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

Definition at line 35 of file Parser.php.

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

Definition at line 33 of file Parser.php.

const MW_COLON_STATE_CLOSETAG = 3

Definition at line 51 of file Parser.php.

const MW_COLON_STATE_COMMENT = 5

Definition at line 53 of file Parser.php.

const MW_COLON_STATE_COMMENTDASH = 6

Definition at line 54 of file Parser.php.

const MW_COLON_STATE_COMMENTDASHDASH = 7

Definition at line 55 of file Parser.php.

const MW_COLON_STATE_TAG = 1

Definition at line 49 of file Parser.php.

const MW_COLON_STATE_TAGSLASH = 4

Definition at line 52 of file Parser.php.

const MW_COLON_STATE_TAGSTART = 2

Definition at line 50 of file Parser.php.

const MW_COLON_STATE_TEXT = 0

Definition at line 48 of file Parser.php.

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.

const OT_HTML = 1

Definition at line 18 of file Parser.php.

Referenced by Parser\setOutputType().

const OT_MSG = 3

Definition at line 20 of file Parser.php.

Referenced by Parser\setOutputType().

const OT_PREPROCESS = 4

Definition at line 21 of file Parser.php.

Referenced by Parser\setOutputType().

const OT_WIKI = 2

Definition at line 19 of file Parser.php.

Referenced by Parser\setOutputType().

const RLH_FOR_UPDATE = 1

Definition at line 15 of file Parser.php.

const SFH_NO_HASH = 1

Definition at line 24 of file Parser.php.

const STRIP_COMMENTS = 'HTMLCommentStrip'

Definition at line 30 of file Parser.php.