ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct () | |
maybeMakeExternalImage ($url) | |
Public Member Functions inherited from Parser | |
__construct () | |
#- More... | |
firstCallInit () | |
Do various kinds of initialisation on the first call of the parser. More... | |
clearState () | |
Clear Parser state. More... | |
setOutputType ($ot) | |
uniqPrefix () | |
Accessor for mUniqPrefix. More... | |
parse ($text, &$title, $options, $linestart=true, $clearState=true, $revid=null) | |
Convert wikitext to HTML Do not call this function recursively. More... | |
recursiveTagParse ($text) | |
Recursive parser entry point that can be called from an extension tag hook. More... | |
preprocess ($text, $title, $options) | |
Expand templates and variables in the text, producing valid, static wikitext. More... | |
& | getTitle () |
getOptions () | |
getFunctionLang () | |
strip ($text, $state, $stripcomments=false, $dontstrip=array()) | |
Strips and renders nowiki, pre, math, hiero If $render is set, performs necessary rendering operations on plugins Returns the text, and fills an array with data needed in unstrip() More... | |
unstrip ($text, $state) | |
Restores pre, math, and other extensions removed by strip() More... | |
unstripNoWiki ($text, $state) | |
Always call this after unstrip() to preserve the order. More... | |
unstripForHTML ($text) | |
insertStripItem ($text, &$state) | |
Add an item to the strip state Returns the unique tag which must be inserted into the stripped text The tag will be replaced with the original text in unstrip() More... | |
doTableStuff ($text) | |
parse the wiki syntax used to render tables More... | |
internalParse ($text) | |
Helper function for parse() that transforms wiki markup into HTML. More... | |
& | doMagicLinks (&$text) |
Replace special strings like "ISBN xxx" and "RFC xxx" with magic external links. More... | |
magicLinkCallback ($m) | |
doHeadings ($text) | |
Parse headers and return html. More... | |
doAllQuotes ($text) | |
Replace single quotes with HTML markup. More... | |
doQuotes ($text) | |
Helper function for doAllQuotes() More... | |
replaceExternalLinks ($text) | |
Replace external links. More... | |
replaceFreeExternalLinks ($text) | |
Replace anything that looks like a URL with a link. More... | |
maybeMakeExternalImage ($url) | |
make an image if it's allowed, either through the global option or through the exception More... | |
replaceInternalLinks ($s) | |
Process [[ ]] wikilinks. More... | |
makeLinkHolder (&$nt, $text='', $query='', $trail='', $prefix='') | |
Make a link placeholder. More... | |
makeKnownLinkHolder ($nt, $text='', $query='', $trail='', $prefix='') | |
Render a forced-blue link inline; protect against double expansion of URLs if we're in a mode that prepends full URL prefixes to internal links. More... | |
armorLinks ($text) | |
Insert a NOPARSE hacky thing into any inline links in a chunk that's going to go through further parsing steps before inline URL expansion. More... | |
areSubpagesAllowed () | |
Return true if subpage links should be expanded on this page. More... | |
maybeDoSubpageLink ($target, &$text) | |
Handle link to subpage if necessary. More... | |
closeParagraph () | |
#+ Used by doBlockLevels() More... | |
getCommon ($st1, $st2) | |
openList ($char) | |
nextItem ($char) | |
closeList ($char) | |
doBlockLevels ($text, $linestart) | |
#- More... | |
findColonNoLinks ($str, &$before, &$after) | |
Split up a string on ':', ignoring any occurences inside tags to prevent illegal overlapping. More... | |
getVariableValue ($index) | |
Return value of a magic variable (like PAGENAME) More... | |
initialiseVariables () | |
initialise the magic variables (like CURRENTMONTHNAME) More... | |
replace_callback ($text, $callbacks) | |
parse any parentheses in format ((title|part|part)) and call callbacks to get a replacement text for any found piece More... | |
replaceVariables ($text, $args=array(), $argsOnly=false) | |
Replace magic variables, templates, and template arguments with the appropriate text. More... | |
variableSubstitution ($matches) | |
Replace magic variables. More... | |
braceSubstitution ($piece) | |
Return the text of a template, after recursively replacing any variables or templates within the template. More... | |
fetchTemplate ($title) | |
Fetch the unparsed text of a template and register a reference to it. More... | |
interwikiTransclude ($title, $action) | |
Transclude an interwiki link. More... | |
fetchScaryTemplateMaybeFromCache ($url) | |
argSubstitution ($matches) | |
Triple brace replacement – used for template arguments. More... | |
incrementIncludeSize ($type, $size) | |
Increment an include size counter. More... | |
stripNoGallery (&$text) | |
Detect NOGALLERY magic word and set a placeholder. More... | |
stripToc ($text) | |
Detect TOC magic word and set a placeholder. More... | |
formatHeadings ($text, $isMain=true) | |
This function accomplishes several tasks: 1) Auto-number headings if that option is enabled 2) Add an [edit] link to sections for logged in users who have enabled the option 3) Add a Table of contents on the top for users who have enabled the option 4) Auto-anchor headings. More... | |
preSaveTransform ($text, &$title, $user, $options, $clearState=true) | |
Transform wiki markup when saving a page by doing -> conversion, substitting signatures, {{subst:}} templates, etc. More... | |
pstPass2 ($text, &$stripState, $user) | |
Pre-save transform helper function. More... | |
getUserSig (&$user) | |
Fetch the user's signature text, if any, and normalize to validated, ready-to-insert wikitext. More... | |
validateSig ($text) | |
Check that the user's signature contains no bad XML. More... | |
cleanSig ($text, $parsing=false) | |
Clean up signature text. More... | |
cleanSigInSig ($text) | |
Strip ~~~, ~~~~ and ~~~~~ out of signatures. More... | |
startExternalParse (&$title, $options, $outputType, $clearState=true) | |
Set up some variables which are usually set up in parse() so that an external function can call some class members with confidence. More... | |
transformMsg ($text, $options) | |
Transform a MediaWiki message by replacing magic variables. More... | |
setHook ($tag, $callback) | |
Create an HTML-style tag, e.g. More... | |
setFunctionHook ($id, $callback, $flags=0) | |
Create a function, e.g. More... | |
getFunctionHooks () | |
Get all registered function hook identifiers. More... | |
replaceLinkHolders (&$text, $options=0) | |
Replace link placeholders with actual links, in the buffer Placeholders created in Skin::makeLinkObj() Returns an array of links found, indexed by PDBK: 0 - broken 1 - normal link 2 - stub $options is a bit field, RLH_FOR_UPDATE to select for update. More... | |
replaceLinkHoldersText ($text) | |
Replace link placeholders with plain text of links (not HTML-formatted). More... | |
replaceLinkHoldersTextCallback ($matches) | |
renderPreTag ($text, $attribs) | |
Tag hook handler for 'pre'. More... | |
renderImageGallery ($text, $params) | |
Renders an image gallery from a text with one line per image. More... | |
makeImage ($nt, $options) | |
Parse image options text and use it to make an image. More... | |
disableCache () | |
Set a flag in the output object indicating that the content is dynamic and shouldn't be cached. More... | |
attributeStripCallback (&$text, $args) | |
#+ Callback from the Sanitizer for expanding items found in HTML attribute values, so they can be safely tested and escaped. More... | |
Title ($x=null) | |
#- More... | |
Options ($x=null) | |
OutputType ($x=null) | |
getTags () | |
#- More... | |
getSection ($text, $section, $deftext='') | |
This function returns the text of a section, specified by a number ($section). More... | |
replaceSection ($oldtext, $section, $text) | |
getRevisionTimestamp () | |
Get the timestamp associated with the current revision, adjusted for the default server-local timestamp. More... | |
setDefaultSort ($sort) | |
Mutator for $mDefaultSort. More... | |
getDefaultSort () | |
Accessor for $mDefaultSort Will use the title/prefixed title if none is set. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Parser | |
getRandomString () | |
Get a random string. More... | |
extractTagsAndParams ($elements, $text, &$matches, $uniq_prefix='') | |
Replaces all occurrences of HTML-style comments and the given tags in the text with a random marker and returns teh next text. More... | |
tidy ($text) | |
Interface with html tidy, used if $wgUseTidy = true. More... | |
externalTidy ($text) | |
Spawn an external HTML tidy process and get corrected markup back from it. More... | |
internalTidy ($text) | |
Use the HTML tidy PECL extension to use the tidy library in-process, saving the overhead of spawning a new process. More... | |
static | replaceUnusualEscapes ($url) |
Replace unusual URL escape codes with their equivalent characters. More... | |
static | createAssocArgs ($args) |
Clean up argument array - refactored in 1.9 so parserfunctions can use it, too. More... | |
Data Fields inherited from Parser | |
const | VERSION = MW_PARSER_VERSION |
$mTagHooks | |
#+ More... | |
$mFunctionHooks | |
$mFunctionSynonyms | |
$mVariables | |
$mOutput | |
$mAutonumber | |
$mDTopen | |
$mStripState | |
$mIncludeCount | |
$mArgStack | |
$mLastSection | |
$mInPre | |
$mInterwikiLinkHolders | |
$mLinkHolders | |
$mUniqPrefix | |
$mIncludeSizes | |
$mDefaultSort | |
$mTemplates | |
$mTemplatePath | |
$mOptions | |
$mTitle | |
$mOutputType | |
$ot | |
$mRevisionId | |
$mRevisionTimestamp | |
$mRevIdForTs | |
Definition at line 107 of file class.ilMWParserAdapter.php.
ilMWParserAdapter::__construct | ( | ) |
Definition at line 109 of file class.ilMWParserAdapter.php.
ilMWParserAdapter::maybeMakeExternalImage | ( | $url | ) |
Definition at line 117 of file class.ilMWParserAdapter.php.