ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilMWParserAdapter Class Reference
+ Inheritance diagram for ilMWParserAdapter:
+ Collaboration diagram for ilMWParserAdapter:

Public Member Functions

 __construct ()
 maybeMakeExternalImage ($url)
 make an image if it's allowed, either through the global option or through the exception
- Public Member Functions inherited from Parser
 Parser ()
 #@-
 firstCallInit ()
 Do various kinds of initialisation on the first call of the parser.
 setOutputType ($ot)
 uniqPrefix ()
 Accessor for mUniqPrefix.
 parse ($text, &$title, $options, $linestart=true, $clearState=true, $revid=null)
 Convert wikitext to HTML Do not call this function recursively.
 recursiveTagParse ($text)
 Recursive parser entry point that can be called from an extension tag hook.
 preprocess ($text, $title, $options)
 Expand templates and variables in the text, producing valid, static wikitext.
getTitle ()
 getOptions ()
 getFunctionLang ()
 unstripForHTML ($text)
 magicLinkCallback ($m)
 makeLinkHolder (&$nt, $text= '', $query= '', $trail= '', $prefix= '')
 Make a link placeholder.
 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.
 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.
 areSubpagesAllowed ()
 Return true if subpage links should be expanded on this page.
 getCommon ($st1, $st2)
 openList ($char)
 nextItem ($char)
 closeList ($char)
 findColonNoLinks ($str, &$before, &$after)
 Split up a string on ':', ignoring any occurences inside tags to prevent illegal overlapping.
 fetchTemplate ($title)
 Fetch the unparsed text of a template and register a reference to it.
 interwikiTransclude ($title, $action)
 Transclude an interwiki link.
 fetchScaryTemplateMaybeFromCache ($url)
 incrementIncludeSize ($type, $size)
 Increment an include size counter.
 stripNoGallery (&$text)
 Detect NOGALLERY magic word and set a placeholder.
 stripToc ($text)
 Detect TOC magic word and set a placeholder.
 preSaveTransform ($text, &$title, $user, $options, $clearState=true)
 Transform wiki markup when saving a page by doing
->
conversion, substitting signatures, {{subst:}} templates, etc.
 validateSig ($text)
 Check that the user's signature contains no bad XML.
 cleanSig ($text, $parsing=false)
 Clean up signature text.
 cleanSigInSig ($text)
 Strip ~~~, ~~~~ and ~~~~~ out of signatures.
 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.
 transformMsg ($text, $options)
 Transform a MediaWiki message by replacing magic variables.
 setHook ($tag, $callback)
 Create an HTML-style tag, e.g.
 setFunctionHook ($id, $callback, $flags=0)
 Create a function, e.g.
 getFunctionHooks ()
 Get all registered function hook identifiers.
 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.
 replaceLinkHoldersText ($text)
 Replace link placeholders with plain text of links (not HTML-formatted).
 renderPreTag ($text, $attribs)
 Tag hook handler for 'pre'.
 renderImageGallery ($text, $params)
 Renders an image gallery from a text with one line per image.
 makeImage ($nt, $options)
 Parse image options text and use it to make an image.
 disableCache ()
 Set a flag in the output object indicating that the content is dynamic and shouldn't be cached.
 Title ($x=NULL)
 #@-
 Options ($x=NULL)
 OutputType ($x=NULL)
 getTags ()
 #@-
 getSection ($text, $section, $deftext='')
 This function returns the text of a section, specified by a number ($section).
 replaceSection ($oldtext, $section, $text)
 getRevisionTimestamp ()
 Get the timestamp associated with the current revision, adjusted for the default server-local timestamp.
 setDefaultSort ($sort)
 Mutator for $mDefaultSort.
 getDefaultSort ()
 Accessor for $mDefaultSort Will use the title/prefixed title if none is set.

Additional Inherited Members

- Static Public Member Functions inherited from Parser
 tidy ($text)
 Interface with html tidy, used if $wgUseTidy = true.
static replaceUnusualEscapes ($url)
 Replace unusual URL escape codes with their equivalent characters.
static createAssocArgs ($args)
 Clean up argument array - refactored in 1.9 so parserfunctions can use it, too.
- Data Fields inherited from Parser
const VERSION = MW_PARSER_VERSION
 $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

Detailed Description

Definition at line 117 of file class.ilMWParserAdapter.php.

Constructor & Destructor Documentation

ilMWParserAdapter::__construct ( )

Definition at line 119 of file class.ilMWParserAdapter.php.

{
$this->mOptions = new ilMWFakery();
$this->mTitle = new ilMWFakery();
$this->mOutput = new ilMWFakery();
}

Member Function Documentation

ilMWParserAdapter::maybeMakeExternalImage (   $url)

make an image if it's allowed, either through the global option or through the exception

Reimplemented from Parser.

Definition at line 127 of file class.ilMWParserAdapter.php.

{ return false;}

The documentation for this class was generated from the following file: