MediaWiki  1.23.2
ParserOutput Class Reference
Inheritance diagram for ParserOutput:
Collaboration diagram for ParserOutput:

Public Member Functions

 __construct ( $text='', $languageLinks=array(), $categoryLinks=array(), $containsOldMagic=false, $titletext='')
 
 __sleep ()
 Save space for for serialization by removing useless values. More...
 
 addCategory ( $c, $sort)
 
 addExternalLink ( $url)
 
 addHeadItem ( $section, $tag=false)
 Add some text to the "<head>". More...
 
 addImage ( $name, $timestamp=null, $sha1=null)
 Register a file dependency for this output. More...
 
 addInterwikiLink ( $title)
 
 addJsConfigVars ( $keys, $value=null)
 Add one or more variables to be set in mw.config in JavaScript. More...
 
 addLanguageLink ( $t)
 
 addLink (Title $title, $id=null)
 Record a local or interwiki inline link for saving in future link tables. More...
 
 addModuleMessages ( $modules)
 
 addModules ( $modules)
 
 addModuleScripts ( $modules)
 
 addModuleStyles ( $modules)
 
 addOutputHook ( $hook, $data=false)
 
 addOutputPageMetadata (OutputPage $out)
 Copy items from the OutputPage object into this one. More...
 
 addSecondaryDataUpdate (DataUpdate $update)
 Adds an update job to the output. More...
 
 addTemplate ( $title, $page_id, $rev_id)
 Register a template dependency for this output. More...
 
 addWarning ( $s)
 
getCategories ()
 
 getCategoryLinks ()
 
 getDisplayTitle ()
 Get the title to be used for display. More...
 
 getEditSectionTokens ()
 
 getExtensionData ( $key)
 Gets extensions data previously attached to this ParserOutput using setExtensionData(). More...
 
getExternalLinks ()
 
getFileSearchOptions ()
 
 getFlag ( $flag)
 
 getHeadItems ()
 
 getHideNewSection ()
 
getImages ()
 
 getIndexPolicy ()
 
 getInterwikiLinks ()
 
 getJsConfigVars ()
 
getLanguageLinks ()
 
 getLimitReportData ()
 
getLinks ()
 
 getModuleMessages ()
 
 getModules ()
 
 getModuleScripts ()
 
 getModuleStyles ()
 
 getNewSection ()
 
 getNoGallery ()
 
 getOutputHooks ()
 
 getProperties ()
 
 getProperty ( $name)
 
 getSecondaryDataUpdates (Title $title=null, $recursive=true)
 Returns any DataUpdate jobs to be executed in order to store secondary information extracted from the page's content, including a LinksUpdate object for all links stored in this ParserOutput object. More...
 
 getSections ()
 
getTemplateIds ()
 
getTemplates ()
 
 getText ()
 
 getTimeSinceStart ( $clock)
 Returns the time since resetParseStartTime() was last called. More...
 
 getTimestamp ()
 
 getTitleText ()
 
 getTOCEnabled ()
 
 getTOCHTML ()
 
 getUsedOptions ()
 Returns the options from its ParserOptions which have been taken into account to produce this output or false if not available. More...
 
 getWarnings ()
 
 hideNewSection ( $value)
 
 preventClickjacking ( $flag=null)
 Get or set the prevent-clickjacking flag. More...
 
 recordOption ( $option)
 Tags a parser option for use in the cache key for this parser output. More...
 
 replaceEditSectionLinksCallback ( $m)
 callback used by getText to replace editsection tokens More...
 
 resetParseStartTime ()
 Resets the parse start timestamps for future calls to getTimeSinceStart() More...
 
 setCategoryLinks ( $cl)
 
 setDisplayTitle ( $text)
 Override the title to be used for display – this is assumed to have been validated (check equal normalisation, etc.) More...
 
 setEditSectionTokens ( $t)
 
 setExtensionData ( $key, $value)
 Attaches arbitrary data to this ParserObject. More...
 
 setFlag ( $flag)
 Fairly generic flag setter thingy. More...
 
 setIndexPolicy ( $policy)
 
 setLanguageLinks ( $ll)
 
 setLimitReportData ( $key, $value)
 Sets parser limit report data for a key. More...
 
 setNewSection ( $value)
 
 setProperty ( $name, $value)
 Set a property to be stored in the page_props database table. More...
 
 setSections ( $toc)
 
 setText ( $text)
 
 setTimestamp ( $timestamp)
 
 setTitleText ( $t)
 
 setTOCEnabled ( $flag)
 
 setTOCHTML ( $tochtml)
 
- Public Member Functions inherited from CacheTime
 containsOldMagic ()
 
 expired ( $touched)
 Return true if this cached output object predates the global or per-article cache invalidation timestamps, or if it comes from an incompatible older version. More...
 
 getCacheExpiry ()
 Returns the number of seconds after which this object should expire. More...
 
 getCacheRevisionId ()
 
 getCacheTime ()
 
 isCacheable ()
 
 isDifferentRevision ( $id)
 Return true if this cached output object is for a different revision of the page. More...
 
 setCacheRevisionId ( $id)
 
 setCacheTime ( $t)
 setCacheTime() sets the timestamp expressing when the page has been rendered. More...
 
 setContainsOldMagic ( $com)
 
 updateCacheExpiry ( $seconds)
 Sets the number of seconds after which this object should expire. More...
 

Static Public Member Functions

static isLinkInternal ( $internal, $url)
 Checks, if a url is pointing to the own server. More...
 

Public Attributes

 $mCategories
 
 $mEditSectionTokens = false
 
 $mExternalLinks = array()
 
 $mFileSearchOptions = array()
 
 $mHeadItems = array()
 
 $mHideNewSection = false
 
 $mImages = array()
 
 $mInterwikiLinks = array()
 
 $mJsConfigVars = array()
 
 $mLanguageLinks
 
 $mLinks = array()
 
 $mModuleMessages = array()
 
 $mModules = array()
 
 $mModuleScripts = array()
 
 $mModuleStyles = array()
 
 $mNewSection = false
 
 $mNoGallery = false
 
 $mOutputHooks = array()
 
 $mProperties = array()
 
 $mSections = array()
 
 $mTemplateIds = array()
 
 $mTemplates = array()
 
 $mText
 
 $mTimestamp
 
 $mTitleText
 
 $mTOCEnabled = true
 
 $mTOCHTML = ''
 
 $mWarnings = array()
 
const EDITSECTION_REGEX = '#<(?:mw:)?editsection page="(.*?)" section="(.*?)"(?:/>|>(.*?)(</(?:mw:)?editsection>))#'
 
- Public Attributes inherited from CacheTime
 $mCacheExpiry = null
 
 $mCacheRevisionId = null
 
 $mCacheTime = ''
 
 $mContainsOldMagic
 
array bool $mUsedOptions
 ParserOptions which have been taken into account to produce output or false if not available. More...
 
 $mVersion = Parser::VERSION
 

Static Private Member Functions

static getTimes ( $clock=null)
 

Private Attributes

 $mAccessedOptions = array()
 
 $mExtensionData = array()
 
 $mIndexPolicy = ''
 
 $mLimitReportData = array()
 
 $mParseStartTime = array()
 
 $mPreventClickjacking = false
 
 $mSecondaryDataUpdates = array()
 

Detailed Description

Definition at line 24 of file ParserOutput.php.

Constructor & Destructor Documentation

◆ __construct()

ParserOutput::__construct (   $text = '',
  $languageLinks = array(),
  $categoryLinks = array(),
  $containsOldMagic = false,
  $titletext = '' 
)

Definition at line 63 of file ParserOutput.php.

Member Function Documentation

◆ __sleep()

ParserOutput::__sleep ( )

Save space for for serialization by removing useless values.

Definition at line 678 of file ParserOutput.php.

References array().

◆ addCategory()

ParserOutput::addCategory (   $c,
  $sort 
)

Definition at line 161 of file ParserOutput.php.

References $sort.

◆ addExternalLink()

ParserOutput::addExternalLink (   $url)

Definition at line 200 of file ParserOutput.php.

References global.

◆ addHeadItem()

ParserOutput::addHeadItem (   $section,
  $tag = false 
)

Add some text to the "<head>".

If $tag is set, the section with that tag will only be included once in a given page.

Definition at line 301 of file ParserOutput.php.

References $section.

◆ addImage()

ParserOutput::addImage (   $name,
  $timestamp = null,
  $sha1 = null 
)

Register a file dependency for this output.

Parameters
string$nameTitle dbKey
string$timestampMW timestamp of file creation (or false if non-existing)
string$sha1base 36 SHA-1 of file (or false if non-existing)
Returns
void

Definition at line 254 of file ParserOutput.php.

References $name, $timestamp, and array().

◆ addInterwikiLink()

ParserOutput::addInterwikiLink (   $title)
Parameters
$titleTitle object, must be an interwiki link
Exceptions
MWExceptionif given invalid input

Definition at line 285 of file ParserOutput.php.

References $title, and array().

◆ addJsConfigVars()

ParserOutput::addJsConfigVars (   $keys,
  $value = null 
)

Add one or more variables to be set in mw.config in JavaScript.

Parameters
$keys{String|Array} Key or array of key/value pairs.
$value{Mixed} [optional] Value of the configuration variable.
Since
1.23

Definition at line 332 of file ParserOutput.php.

References $keys, $value, and as.

◆ addLanguageLink()

ParserOutput::addLanguageLink (   $t)

Definition at line 162 of file ParserOutput.php.

References $t.

◆ addLink()

ParserOutput::addLink ( Title  $title,
  $id = null 
)

Record a local or interwiki inline link for saving in future link tables.

Parameters
$titleTitle object
$idMixed: optional known page_id so we can skip the lookup

Definition at line 219 of file ParserOutput.php.

References $title, array(), NS_FILE, NS_MEDIA, and NS_SPECIAL.

◆ addModuleMessages()

ParserOutput::addModuleMessages (   $modules)

Definition at line 321 of file ParserOutput.php.

References array().

◆ addModules()

ParserOutput::addModules (   $modules)

Definition at line 309 of file ParserOutput.php.

References array().

◆ addModuleScripts()

ParserOutput::addModuleScripts (   $modules)

Definition at line 313 of file ParserOutput.php.

References array().

◆ addModuleStyles()

ParserOutput::addModuleStyles (   $modules)

Definition at line 317 of file ParserOutput.php.

References array().

◆ addOutputHook()

ParserOutput::addOutputHook (   $hook,
  $data = false 
)

Definition at line 165 of file ParserOutput.php.

References array().

◆ addOutputPageMetadata()

ParserOutput::addOutputPageMetadata ( OutputPage  $out)

Copy items from the OutputPage object into this one.

Parameters
$outOutputPage object

Definition at line 348 of file ParserOutput.php.

References $out.

◆ addSecondaryDataUpdate()

ParserOutput::addSecondaryDataUpdate ( DataUpdate  $update)

Adds an update job to the output.

Any update jobs added to the output will eventually be executed in order to store any secondary information extracted from the page's content. This is triggered by calling getSecondaryDataUpdates() and is used for forward links updates on edit and backlink updates by jobs.

Since
1.20
Parameters
DataUpdate$update

Definition at line 502 of file ParserOutput.php.

◆ addTemplate()

ParserOutput::addTemplate (   $title,
  $page_id,
  $rev_id 
)

Register a template dependency for this output.

Parameters
$titleTitle
$page_id
$rev_id
Returns
void

Definition at line 268 of file ParserOutput.php.

References $title, and array().

◆ addWarning()

ParserOutput::addWarning (   $s)

Definition at line 163 of file ParserOutput.php.

References $s.

◆ getCategories()

& ParserOutput::getCategories ( )

Definition at line 123 of file ParserOutput.php.

◆ getCategoryLinks()

ParserOutput::getCategoryLinks ( )

Definition at line 122 of file ParserOutput.php.

◆ getDisplayTitle()

ParserOutput::getDisplayTitle ( )

Get the title to be used for display.

Returns
String

Definition at line 376 of file ParserOutput.php.

References $t.

◆ getEditSectionTokens()

ParserOutput::getEditSectionTokens ( )

Definition at line 126 of file ParserOutput.php.

◆ getExtensionData()

ParserOutput::getExtensionData (   $key)

Gets extensions data previously attached to this ParserOutput using setExtensionData().

Typically, such data would be set while parsing the page, e.g. by a parser function.

Since
1.21
Parameters
string$keyThe key to look up.
Returns
mixed The value previously set for the given key using setExtensionData( $key ), or null if no value was set for this key.

Definition at line 592 of file ParserOutput.php.

◆ getExternalLinks()

& ParserOutput::getExternalLinks ( )

Definition at line 132 of file ParserOutput.php.

◆ getFileSearchOptions()

& ParserOutput::getFileSearchOptions ( )

Definition at line 131 of file ParserOutput.php.

◆ getFlag()

ParserOutput::getFlag (   $flag)

Definition at line 391 of file ParserOutput.php.

◆ getHeadItems()

ParserOutput::getHeadItems ( )

Definition at line 134 of file ParserOutput.php.

◆ getHideNewSection()

ParserOutput::getHideNewSection ( )

Definition at line 175 of file ParserOutput.php.

◆ getImages()

& ParserOutput::getImages ( )

Definition at line 130 of file ParserOutput.php.

Referenced by WikiPage\doCascadeProtectionUpdates().

◆ getIndexPolicy()

ParserOutput::getIndexPolicy ( )

Definition at line 143 of file ParserOutput.php.

◆ getInterwikiLinks()

ParserOutput::getInterwikiLinks ( )

Definition at line 121 of file ParserOutput.php.

◆ getJsConfigVars()

ParserOutput::getJsConfigVars ( )
Since
1.23

Definition at line 140 of file ParserOutput.php.

◆ getLanguageLinks()

& ParserOutput::getLanguageLinks ( )

Definition at line 120 of file ParserOutput.php.

◆ getLimitReportData()

ParserOutput::getLimitReportData ( )

Definition at line 146 of file ParserOutput.php.

◆ getLinks()

& ParserOutput::getLinks ( )

Definition at line 127 of file ParserOutput.php.

◆ getModuleMessages()

ParserOutput::getModuleMessages ( )

Definition at line 138 of file ParserOutput.php.

◆ getModules()

ParserOutput::getModules ( )

Definition at line 135 of file ParserOutput.php.

◆ getModuleScripts()

ParserOutput::getModuleScripts ( )

Definition at line 136 of file ParserOutput.php.

◆ getModuleStyles()

ParserOutput::getModuleStyles ( )

Definition at line 137 of file ParserOutput.php.

◆ getNewSection()

ParserOutput::getNewSection ( )

Definition at line 178 of file ParserOutput.php.

◆ getNoGallery()

ParserOutput::getNoGallery ( )

Definition at line 133 of file ParserOutput.php.

◆ getOutputHooks()

ParserOutput::getOutputHooks ( )

Definition at line 141 of file ParserOutput.php.

References array().

◆ getProperties()

ParserOutput::getProperties ( )

Definition at line 460 of file ParserOutput.php.

References array().

◆ getProperty()

ParserOutput::getProperty (   $name)

Definition at line 456 of file ParserOutput.php.

References $name.

◆ getSecondaryDataUpdates()

ParserOutput::getSecondaryDataUpdates ( Title  $title = null,
  $recursive = true 
)

Returns any DataUpdate jobs to be executed in order to store secondary information extracted from the page's content, including a LinksUpdate object for all links stored in this ParserOutput object.

Note
: Avoid using this method directly, use ContentHandler::getSecondaryDataUpdates() instead! The content handler may provide additional update objects.
Since
1.20
Parameters
$titleTitle The title of the page we're updating. If not given, a title object will be created based on $this->getTitleText()
$recursiveBoolean: queue jobs for recursive updates?
Returns
Array. An array of instances of DataUpdate

Definition at line 522 of file ParserOutput.php.

References $linksUpdate, $title, array(), and Title\newFromText().

◆ getSections()

ParserOutput::getSections ( )

Definition at line 125 of file ParserOutput.php.

◆ getTemplateIds()

& ParserOutput::getTemplateIds ( )

Definition at line 129 of file ParserOutput.php.

◆ getTemplates()

& ParserOutput::getTemplates ( )

Definition at line 128 of file ParserOutput.php.

Referenced by WikiPage\doCascadeProtectionUpdates().

◆ getText()

ParserOutput::getText ( )

Definition at line 73 of file ParserOutput.php.

References array().

◆ getTimes()

static ParserOutput::getTimes (   $clock = null)
staticprivate

Definition at line 600 of file ParserOutput.php.

References $ret, and array().

◆ getTimeSinceStart()

ParserOutput::getTimeSinceStart (   $clock)

Returns the time since resetParseStartTime() was last called.

Clocks available are:

  • wall: Wall clock time
  • cpu: CPU time (requires getrusage)
Since
1.22
Parameters
string$clock
Returns
float|null

Definition at line 632 of file ParserOutput.php.

◆ getTimestamp()

ParserOutput::getTimestamp ( )

Definition at line 145 of file ParserOutput.php.

◆ getTitleText()

ParserOutput::getTitleText ( )

Definition at line 124 of file ParserOutput.php.

Referenced by Article\adjustDisplayTitle().

◆ getTOCEnabled()

ParserOutput::getTOCEnabled ( )

Definition at line 147 of file ParserOutput.php.

◆ getTOCHTML()

ParserOutput::getTOCHTML ( )

Definition at line 144 of file ParserOutput.php.

◆ getUsedOptions()

ParserOutput::getUsedOptions ( )

Returns the options from its ParserOptions which have been taken into account to produce this output or false if not available.

Returns
mixed Array

Definition at line 472 of file ParserOutput.php.

References array().

◆ getWarnings()

ParserOutput::getWarnings ( )

Definition at line 142 of file ParserOutput.php.

◆ hideNewSection()

ParserOutput::hideNewSection (   $value)

Definition at line 172 of file ParserOutput.php.

References $value.

◆ isLinkInternal()

static ParserOutput::isLinkInternal (   $internal,
  $url 
)
static

Checks, if a url is pointing to the own server.

Parameters
string$internalthe server to check against
string$urlthe url to check
Returns
bool

Definition at line 189 of file ParserOutput.php.

References check, https, in, is(), of, query, and server.

Referenced by ParserOutputTest\testIsLinkInternal().

◆ preventClickjacking()

ParserOutput::preventClickjacking (   $flag = null)

Get or set the prevent-clickjacking flag.

Since
1.24
Parameters
boolean | null$flagNew flag value, or null to leave it unchanged
Returns
boolean Old flag value

Definition at line 671 of file ParserOutput.php.

References wfSetVar().

◆ recordOption()

ParserOutput::recordOption (   $option)

Tags a parser option for use in the cache key for this parser output.

Registered as a watcher at ParserOptions::registerWatcher() by Parser::clearState().

See also
ParserCache::getKey
ParserCache::save
ParserOptions::addExtraKey
ParserOptions::optionsHash

Definition at line 488 of file ParserOutput.php.

◆ replaceEditSectionLinksCallback()

ParserOutput::replaceEditSectionLinksCallback (   $m)

callback used by getText to replace editsection tokens

Access:\n private
Parameters
$m
Exceptions
MWException
Returns
mixed

Definition at line 104 of file ParserOutput.php.

References $args, $skin, $wgLang, $wgOut, array(), global, and Title\newFromText().

◆ resetParseStartTime()

ParserOutput::resetParseStartTime ( )

Resets the parse start timestamps for future calls to getTimeSinceStart()

Since
1.22

Definition at line 617 of file ParserOutput.php.

◆ setCategoryLinks()

ParserOutput::setCategoryLinks (   $cl)

Definition at line 151 of file ParserOutput.php.

References wfSetVar().

◆ setDisplayTitle()

ParserOutput::setDisplayTitle (   $text)

Override the title to be used for display – this is assumed to have been validated (check equal normalisation, etc.)

Parameters
string$textdesired title text

Definition at line 366 of file ParserOutput.php.

◆ setEditSectionTokens()

ParserOutput::setEditSectionTokens (   $t)

Definition at line 155 of file ParserOutput.php.

References $t, and wfSetVar().

◆ setExtensionData()

ParserOutput::setExtensionData (   $key,
  $value 
)

Attaches arbitrary data to this ParserObject.

This can be used to store some information in the ParserOutput object for later use during page output. The data will be cached along with the ParserOutput object, but unlike data set using setProperty(), it is not recorded in the database.

This method is provided to overcome the unsafe practice of attaching extra information to a ParserObject by directly assigning member variables.

To use setExtensionData() to pass extension information from a hook inside the parser to a hook in the page output, use this in the parser hook:

Example:
$parser->getOutput()->setExtensionData( 'my_ext_foo', '...' );

And then later, in OutputPageParserOutput or similar:

Example:
$output->getExtensionData( 'my_ext_foo' );

In MediaWiki 1.20 and older, you have to use a custom member variable within the ParserOutput object:

Example:
$parser->getOutput()->my_ext_foo = '...';
Since
1.21
Parameters
string$keyThe key for accessing the data. Extensions should take care to avoid conflicts in naming keys. It is suggested to use the extension's name as a prefix.
mixed$valueThe value to set. Setting a value to null is equivalent to removing the value.

Definition at line 573 of file ParserOutput.php.

References $value.

◆ setFlag()

ParserOutput::setFlag (   $flag)

Fairly generic flag setter thingy.

Definition at line 387 of file ParserOutput.php.

◆ setIndexPolicy()

ParserOutput::setIndexPolicy (   $policy)

Definition at line 156 of file ParserOutput.php.

References wfSetVar().

◆ setLanguageLinks()

ParserOutput::setLanguageLinks (   $ll)

Definition at line 150 of file ParserOutput.php.

References wfSetVar().

◆ setLimitReportData()

ParserOutput::setLimitReportData (   $key,
  $value 
)

Sets parser limit report data for a key.

The key is used as the prefix for various messages used for formatting:

  • $key: The label for the field in the limit report
  • $key-value-text: Message used to format the value in the "NewPP limit report" HTML comment. If missing, uses $key-format.
  • $key-value-html: Message used to format the value in the preview limit report table. If missing, uses $key-format.
  • $key-value: Message used to format the value. If missing, uses "$1".

Note that all values are interpreted as wikitext, and so should be encoded with htmlspecialchars() as necessary, but should avoid complex HTML for sanity of display in the "NewPP limit report" comment.

Since
1.22
Parameters
string$keyMessage key
mixed$valueAppropriate for Message::params()

Definition at line 660 of file ParserOutput.php.

References $value.

◆ setNewSection()

ParserOutput::setNewSection (   $value)

Definition at line 169 of file ParserOutput.php.

References $value.

◆ setProperty()

ParserOutput::setProperty (   $name,
  $value 
)

Set a property to be stored in the page_props database table.

page_props is a key value store indexed by the page ID. This allows the parser to set a property on a page which can then be quickly retrieved given the page ID or via a DB join when given the page title.

setProperty() is thus used to propagate properties from the parsed page to request contexts other than a page view of the currently parsed article.

Some applications examples:

  • To implement hidden categories, hiding pages from category listings by storing a property.
  • Overriding the displayed article title.
    See also
    ParserOutput::setDisplayTitle()
  • To implement image tagging, for example displaying an icon on an image thumbnail to indicate that it is listed for deletion on Wikimedia Commons. This is not actually implemented, yet but would be pretty cool.
Note
: Do not use setProperty() to set a property which is only used in a context where the ParserOutput object itself is already available, for example a normal page view. There is no need to save such a property in the database since the text is already parsed. You can just hook OutputPageParserOutput and get your data out of the ParserOutput object.

If you are writing an extension where you want to set a property in the parser which is used by an OutputPageParserOutput hook, you have to associate the extension data directly with the ParserOutput object. Since MediaWiki 1.21, you can use setExtensionData() to do this:

Example:
$parser->getOutput()->setExtensionData( 'my_ext_foo', '...' );

And then later, in OutputPageParserOutput or similar:

Example:
$output->getExtensionData( 'my_ext_foo' );

In MediaWiki 1.20 and older, you have to use a custom member variable within the ParserOutput object:

Example:
$parser->getOutput()->my_ext_foo = '...';

Definition at line 452 of file ParserOutput.php.

References $name, and $value.

◆ setSections()

ParserOutput::setSections (   $toc)

Definition at line 154 of file ParserOutput.php.

References wfSetVar().

◆ setText()

ParserOutput::setText (   $text)

Definition at line 149 of file ParserOutput.php.

References wfSetVar().

◆ setTimestamp()

ParserOutput::setTimestamp (   $timestamp)

Definition at line 158 of file ParserOutput.php.

References $timestamp, and wfSetVar().

◆ setTitleText()

ParserOutput::setTitleText (   $t)

Definition at line 153 of file ParserOutput.php.

References $t, and wfSetVar().

◆ setTOCEnabled()

ParserOutput::setTOCEnabled (   $flag)

Definition at line 159 of file ParserOutput.php.

References wfSetVar().

◆ setTOCHTML()

ParserOutput::setTOCHTML (   $tochtml)

Definition at line 157 of file ParserOutput.php.

References wfSetVar().

Member Data Documentation

◆ $mAccessedOptions

ParserOutput::$mAccessedOptions = array()
private

Definition at line 54 of file ParserOutput.php.

◆ $mCategories

ParserOutput::$mCategories

Definition at line 25 of file ParserOutput.php.

◆ $mEditSectionTokens

ParserOutput::$mEditSectionTokens = false

Definition at line 48 of file ParserOutput.php.

◆ $mExtensionData

ParserOutput::$mExtensionData = array()
private

Definition at line 56 of file ParserOutput.php.

◆ $mExternalLinks

ParserOutput::$mExternalLinks = array()

Definition at line 34 of file ParserOutput.php.

◆ $mFileSearchOptions

ParserOutput::$mFileSearchOptions = array()

Definition at line 33 of file ParserOutput.php.

◆ $mHeadItems

ParserOutput::$mHeadItems = array()

Definition at line 39 of file ParserOutput.php.

◆ $mHideNewSection

ParserOutput::$mHideNewSection = false

Definition at line 37 of file ParserOutput.php.

◆ $mImages

ParserOutput::$mImages = array()

Definition at line 32 of file ParserOutput.php.

◆ $mIndexPolicy

ParserOutput::$mIndexPolicy = ''
private

Definition at line 53 of file ParserOutput.php.

◆ $mInterwikiLinks

ParserOutput::$mInterwikiLinks = array()

Definition at line 35 of file ParserOutput.php.

◆ $mJsConfigVars

ParserOutput::$mJsConfigVars = array()

Definition at line 44 of file ParserOutput.php.

◆ $mLanguageLinks

ParserOutput::$mLanguageLinks

Definition at line 25 of file ParserOutput.php.

◆ $mLimitReportData

ParserOutput::$mLimitReportData = array()
private

Definition at line 57 of file ParserOutput.php.

◆ $mLinks

ParserOutput::$mLinks = array()

Definition at line 29 of file ParserOutput.php.

◆ $mModuleMessages

ParserOutput::$mModuleMessages = array()

Definition at line 43 of file ParserOutput.php.

◆ $mModules

ParserOutput::$mModules = array()

Definition at line 40 of file ParserOutput.php.

◆ $mModuleScripts

ParserOutput::$mModuleScripts = array()

Definition at line 41 of file ParserOutput.php.

◆ $mModuleStyles

ParserOutput::$mModuleStyles = array()

Definition at line 42 of file ParserOutput.php.

◆ $mNewSection

ParserOutput::$mNewSection = false

Definition at line 36 of file ParserOutput.php.

◆ $mNoGallery

ParserOutput::$mNoGallery = false

Definition at line 38 of file ParserOutput.php.

◆ $mOutputHooks

ParserOutput::$mOutputHooks = array()

Definition at line 45 of file ParserOutput.php.

◆ $mParseStartTime

ParserOutput::$mParseStartTime = array()
private

Definition at line 58 of file ParserOutput.php.

◆ $mPreventClickjacking

ParserOutput::$mPreventClickjacking = false
private

Definition at line 59 of file ParserOutput.php.

◆ $mProperties

ParserOutput::$mProperties = array()

Definition at line 49 of file ParserOutput.php.

◆ $mSecondaryDataUpdates

ParserOutput::$mSecondaryDataUpdates = array()
private

Definition at line 55 of file ParserOutput.php.

◆ $mSections

ParserOutput::$mSections = array()

Definition at line 47 of file ParserOutput.php.

◆ $mTemplateIds

ParserOutput::$mTemplateIds = array()

Definition at line 31 of file ParserOutput.php.

◆ $mTemplates

ParserOutput::$mTemplates = array()

Definition at line 30 of file ParserOutput.php.

◆ $mText

ParserOutput::$mText

Definition at line 25 of file ParserOutput.php.

◆ $mTimestamp

ParserOutput::$mTimestamp

Definition at line 50 of file ParserOutput.php.

◆ $mTitleText

ParserOutput::$mTitleText

Definition at line 25 of file ParserOutput.php.

◆ $mTOCEnabled

ParserOutput::$mTOCEnabled = true

Definition at line 52 of file ParserOutput.php.

◆ $mTOCHTML

ParserOutput::$mTOCHTML = ''

Definition at line 50 of file ParserOutput.php.

◆ $mWarnings

ParserOutput::$mWarnings = array()

Definition at line 46 of file ParserOutput.php.

◆ EDITSECTION_REGEX

const ParserOutput::EDITSECTION_REGEX = '#<(?:mw:)?editsection page="(.*?)" section="(.*?)"(?:/>|>(.*?)(</(?:mw:)?editsection>))#'

Definition at line 61 of file ParserOutput.php.

Referenced by MWTidyWrapper\getWrapped().


The documentation for this class was generated from the following file:
$parser
do that in ParserLimitReportFormat instead $parser
Definition: hooks.txt:1956
$output
& $output
Definition: hooks.txt:375