Public Member Functions | |
ParserOutput ($text= '', $languageLinks=array(), $categoryLinks=array(), $containsOldMagic=false, $titletext= '') | |
getText () | |
& | getLanguageLinks () |
getCategoryLinks () | |
& | getCategories () |
getCacheTime () | |
getTitleText () | |
getSections () | |
& | getLinks () |
& | getTemplates () |
& | getImages () |
& | getExternalLinks () |
getNoGallery () | |
getSubtitle () | |
getOutputHooks () | |
getWarnings () | |
getIndexPolicy () | |
containsOldMagic () | |
setText ($text) | |
setLanguageLinks ($ll) | |
setCategoryLinks ($cl) | |
setContainsOldMagic ($com) | |
setCacheTime ($t) | |
setTitleText ($t) | |
setSections ($toc) | |
setIndexPolicy ($policy) | |
addCategory ($c, $sort) | |
addLanguageLink ($t) | |
addExternalLink ($url) | |
addWarning ($s) | |
addOutputHook ($hook, $data=false) | |
setNewSection ($value) | |
hideNewSection ($value) | |
getHideNewSection () | |
getNewSection () | |
addLink ($title, $id=null) | |
addImage ($name) | |
addTemplate ($title, $page_id, $rev_id) | |
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. | |
addHeadItem ($section, $tag=false) | |
Add some text to the <head>. | |
setDisplayTitle ($text) | |
Override the title to be used for display -- this is assumed to have been validated (check equal normalisation, etc. | |
getDisplayTitle () | |
Get the title to be used for display. | |
setFlag ($flag) | |
Fairly generic flag setter thingy. | |
getFlag ($flag) | |
setProperty ($name, $value) | |
Set a property to be cached in the DB. | |
getProperty ($name) | |
getProperties () | |
Public Attributes | |
$mText | |
$mLanguageLinks | |
$mCategories | |
$mContainsOldMagic | |
$mTitleText | |
$mCacheTime = '' | |
$mVersion = Parser::VERSION | |
$mLinks = array() | |
$mTemplates = array() | |
$mTemplateIds = array() | |
$mImages = array() | |
$mExternalLinks = array() | |
$mNewSection = false | |
$mHideNewSection = false | |
$mNoGallery = false | |
$mHeadItems = array() | |
$mOutputHooks = array() | |
$mWarnings = array() | |
$mSections = array() | |
$mProperties = array() | |
Private Attributes | |
$mIndexPolicy = '' | |
$displayTitle = false | |
Overridden title for display. |
Definition at line 6 of file ParserOutput.php.
ParserOutput::addCategory | ( | $ | c, | |
$ | sort | |||
) |
ParserOutput::addExternalLink | ( | $ | url | ) |
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 157 of file ParserOutput.php.
References $section.
ParserOutput::addImage | ( | $ | name | ) |
ParserOutput::addLanguageLink | ( | $ | t | ) |
ParserOutput::addLink | ( | $ | title, | |
$ | id = null | |||
) |
ParserOutput::addOutputHook | ( | $ | hook, | |
$ | data = false | |||
) |
Definition at line 77 of file ParserOutput.php.
ParserOutput::addTemplate | ( | $ | title, | |
$ | page_id, | |||
$ | rev_id | |||
) |
ParserOutput::addWarning | ( | $ | s | ) |
ParserOutput::containsOldMagic | ( | ) |
Definition at line 62 of file ParserOutput.php.
ParserOutput::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.
string | $touched the affected article's last touched timestamp |
Definition at line 143 of file ParserOutput.php.
References $wgCacheEpoch, getCacheTime(), and Parser::VERSION.
ParserOutput::getCacheTime | ( | ) |
& ParserOutput::getCategories | ( | ) |
Definition at line 48 of file ParserOutput.php.
ParserOutput::getCategoryLinks | ( | ) |
Definition at line 47 of file ParserOutput.php.
ParserOutput::getDisplayTitle | ( | ) |
Get the title to be used for display.
Definition at line 181 of file ParserOutput.php.
& ParserOutput::getExternalLinks | ( | ) |
Definition at line 55 of file ParserOutput.php.
ParserOutput::getFlag | ( | $ | flag | ) |
Definition at line 192 of file ParserOutput.php.
ParserOutput::getHideNewSection | ( | ) |
Definition at line 87 of file ParserOutput.php.
& ParserOutput::getImages | ( | ) |
Definition at line 54 of file ParserOutput.php.
ParserOutput::getIndexPolicy | ( | ) |
Definition at line 60 of file ParserOutput.php.
& ParserOutput::getLanguageLinks | ( | ) |
Definition at line 46 of file ParserOutput.php.
& ParserOutput::getLinks | ( | ) |
Definition at line 52 of file ParserOutput.php.
ParserOutput::getNewSection | ( | ) |
Definition at line 90 of file ParserOutput.php.
ParserOutput::getNoGallery | ( | ) |
Definition at line 56 of file ParserOutput.php.
ParserOutput::getOutputHooks | ( | ) |
Definition at line 58 of file ParserOutput.php.
ParserOutput::getProperties | ( | ) |
Definition at line 207 of file ParserOutput.php.
ParserOutput::getProperty | ( | $ | name | ) |
ParserOutput::getSections | ( | ) |
Definition at line 51 of file ParserOutput.php.
ParserOutput::getSubtitle | ( | ) |
Definition at line 57 of file ParserOutput.php.
& ParserOutput::getTemplates | ( | ) |
Definition at line 53 of file ParserOutput.php.
ParserOutput::getText | ( | ) |
Definition at line 45 of file ParserOutput.php.
ParserOutput::getTitleText | ( | ) |
Definition at line 50 of file ParserOutput.php.
ParserOutput::getWarnings | ( | ) |
Definition at line 59 of file ParserOutput.php.
ParserOutput::hideNewSection | ( | $ | value | ) |
Definition at line 84 of file ParserOutput.php.
ParserOutput::ParserOutput | ( | $ | text = '' , |
|
$ | languageLinks = array() , |
|||
$ | categoryLinks = array() , |
|||
$ | containsOldMagic = false , |
|||
$ | titletext = '' | |||
) |
ParserOutput::setCacheTime | ( | $ | t | ) |
ParserOutput::setCategoryLinks | ( | $ | cl | ) |
ParserOutput::setContainsOldMagic | ( | $ | com | ) |
ParserOutput::setDisplayTitle | ( | $ | text | ) |
Override the title to be used for display -- this is assumed to have been validated (check equal normalisation, etc.
)
string | $text Desired title text |
Definition at line 172 of file ParserOutput.php.
References $text.
ParserOutput::setFlag | ( | $ | flag | ) |
ParserOutput::setIndexPolicy | ( | $ | policy | ) |
ParserOutput::setLanguageLinks | ( | $ | ll | ) |
ParserOutput::setNewSection | ( | $ | value | ) |
Definition at line 81 of file ParserOutput.php.
ParserOutput::setProperty | ( | $ | name, | |
$ | value | |||
) |
Set a property to be cached in the DB.
Definition at line 199 of file ParserOutput.php.
References $name.
ParserOutput::setSections | ( | $ | toc | ) |
ParserOutput::setText | ( | $ | text | ) |
ParserOutput::setTitleText | ( | $ | t | ) |
ParserOutput::$displayTitle = false [private] |
ParserOutput::$mCacheTime = '' |
Definition at line 13 of file ParserOutput.php.
ParserOutput::$mCategories |
Definition at line 8 of file ParserOutput.php.
ParserOutput::$mContainsOldMagic |
Definition at line 8 of file ParserOutput.php.
ParserOutput::$mExternalLinks = array() |
Definition at line 19 of file ParserOutput.php.
ParserOutput::$mHeadItems = array() |
Definition at line 23 of file ParserOutput.php.
ParserOutput::$mHideNewSection = false |
Definition at line 21 of file ParserOutput.php.
ParserOutput::$mImages = array() |
Definition at line 18 of file ParserOutput.php.
ParserOutput::$mIndexPolicy = '' [private] |
Definition at line 28 of file ParserOutput.php.
ParserOutput::$mLanguageLinks |
Definition at line 8 of file ParserOutput.php.
ParserOutput::$mLinks = array() |
Definition at line 15 of file ParserOutput.php.
ParserOutput::$mNewSection = false |
Definition at line 20 of file ParserOutput.php.
ParserOutput::$mNoGallery = false |
Definition at line 22 of file ParserOutput.php.
ParserOutput::$mOutputHooks = array() |
Definition at line 24 of file ParserOutput.php.
ParserOutput::$mProperties = array() |
Definition at line 27 of file ParserOutput.php.
ParserOutput::$mSections = array() |
Definition at line 26 of file ParserOutput.php.
ParserOutput::$mTemplateIds = array() |
Definition at line 17 of file ParserOutput.php.
ParserOutput::$mTemplates = array() |
Definition at line 16 of file ParserOutput.php.
ParserOutput::$mText |
Definition at line 8 of file ParserOutput.php.
ParserOutput::$mTitleText |
Definition at line 8 of file ParserOutput.php.
ParserOutput::$mVersion = Parser::VERSION |
Definition at line 14 of file ParserOutput.php.
ParserOutput::$mWarnings = array() |
Definition at line 25 of file ParserOutput.php.