MediaWiki
1.23.0
|
Class for viewing MediaWiki article and history. More...
Public Member Functions | |
__call ( $fname, $args) | |
Use PHP's magic __call handler to transform instance calls to WikiPage functions for backwards compatibility. More... | |
__construct (Title $title, $oldId=null) | |
Constructor and clear the article. More... | |
__get ( $fname) | |
Use PHP's magic __get handler to handle accessing of raw WikiPage fields for backwards compatibility. More... | |
__set ( $fname, $fvalue) | |
Use PHP's magic __set handler to handle setting of raw WikiPage fields for backwards compatibility. More... | |
adjustDisplayTitle (ParserOutput $pOutput) | |
Adjust title for pages with displaytitle, -{T|}- or language conversion. More... | |
clear () | |
Clear the object. More... | |
commitRollback ( $fromP, $summary, $bot, &$resultDetails, User $guser=null) | |
confirmDelete ( $reason) | |
Output deletion confirmation dialog. More... | |
delete () | |
UI entry point for page deletion. More... | |
doDelete ( $reason, $suppress=false) | |
Perform a deletion and output success or failure messages. More... | |
doDeleteArticle ( $reason, $suppress=false, $id=0, $commit=true, &$error='') | |
doRollback ( $fromP, $summary, $token, $bot, &$resultDetails, User $user=null) | |
doUpdateRestrictions (array $limit, array $expiry, &$cascade, $reason, User $user) | |
fetchContent () | |
Get text of an article from database Does NOT follow redirects. More... | |
generateReason (&$hasHistory) | |
getContent () | |
Note that getContent/loadContent do not follow redirects anymore. More... | |
getContext () | |
Gets the context this Article is executed in. More... | |
getOldID () | |
getOldIDFromRequest () | |
Sets $this->mRedirectUrl to a correct URL if the query parameters are incorrect. More... | |
getPage () | |
Get the WikiPage object of this instance. More... | |
getParserOptions () | |
Get parser options suitable for rendering the primary article wikitext. More... | |
getParserOutput ( $oldid=null, User $user=null) | |
#- More... | |
getRevIdFetched () | |
Use this to fetch the rev ID used on page views. More... | |
getRevisionFetched () | |
Get the fetched Revision object depending on request parameters or null on failure. More... | |
getRobotPolicy ( $action, $pOutput=null) | |
Get the robot policy to be used for the current view. More... | |
getTitle () | |
Get the title object of the article. More... | |
info () | |
Info about this page. More... | |
isCurrent () | |
Returns true if the currently-referenced revision is the current edit to this page (and it exists). More... | |
isFileCacheable () | |
Check if the page can be cached. More... | |
loadContent () | |
Load the revision (including text) into this object. More... | |
protect () | |
action=protect handler More... | |
purge () | |
Handle action=purge. More... | |
render () | |
Handle action=render. More... | |
revert () | |
Handle action=revert. More... | |
rollback () | |
Handle action=rollback. More... | |
setContext ( $context) | |
Sets the context this Article is executed in. More... | |
setOldSubtitle ( $oldid=0) | |
Generate the navigation links when browsing through an article revisions It shows the information as: Revision as of <date>; view current revision <- Previous version | Next Version -> More... | |
setParserOptions (ParserOptions $options) | |
Override the ParserOptions used to render the primary article wikitext. More... | |
setRedirectedFrom (Title $from) | |
Tell the page view functions that this view was redirected from another page on the wiki. More... | |
showDeletedRevisionHeader () | |
If the revision requested for view is deleted, check permissions. More... | |
showDiffPage () | |
Show a diff page according to current request variables. More... | |
showMissingArticle () | |
Show the error text for a missing article. More... | |
showNamespaceHeader () | |
Show a header specific to the namespace currently being viewed, like [[MediaWiki:Talkpagetext]]. More... | |
showPatrolFooter () | |
If patrol is possible, output a patrol UI box. More... | |
showRedirectedFromHeader () | |
If this request is a redirect view, send "redirected from" subtitle to the output. More... | |
showViewFooter () | |
Show the footer section of an ordinary page view. More... | |
unprotect () | |
action=unprotect handler (alias) More... | |
updateRestrictions ( $limit=array(), $reason='', &$cascade=0, $expiry=array()) | |
view () | |
This is the default action of the index.php entry point: just view the page of the given title. More... | |
viewRedirect ( $target, $appendSubtitle=true, $forceKnown=false) | |
View redirect. More... | |
Static Public Member Functions | |
static | formatRobotPolicy ( $policy) |
Converts a String robot policy into an associative array, to allow merging of several policies using array_merge(). More... | |
static | getAutosummary ( $oldtext, $newtext, $flags) |
static | newFromID ( $id) |
Constructor from a page id. More... | |
static | newFromTitle ( $title, IContextSource $context) |
Create an Article object of the appropriate class for the given page. More... | |
static | newFromWikiPage (WikiPage $page, IContextSource $context) |
Create an Article object of the appropriate class for the given page. More... | |
static | onArticleCreate ( $title) |
static | onArticleDelete ( $title) |
static | onArticleEdit ( $title) |
static | selectFields () |
Protected Member Functions | |
fetchContentObject () | |
Get text content object Does NOT follow redirects. More... | |
getContentObject () | |
Returns a Content object representing the pages effective display content, not necessarily the revision's content! More... | |
newPage (Title $title) | |
showCssOrJsPage ( $showCacheHint=true) | |
Show a page view for a page formatted as CSS or JavaScript. More... | |
tryFileCache () | |
checkLastModified returns true if it has taken care of all output to the client that is necessary for this request. More... | |
IContextSource | $mContext |
The context this Article is executed in $mContext. More... | |
WikiPage | $mPage |
The WikiPage object of this instance $mPage. More... | |
ParserOptions | $mParserOptions |
ParserOptions object for $wgUser articles $mParserOptions. More... | |
string | $mContent |
Text of the revision we are working on $mContent. More... | |
Content | $mContentObject |
Content of the revision we are working on. More... | |
bool | $mContentLoaded = false |
Is the content ($mContent) already loaded? $mContentLoaded. More... | |
int null | $mOldId |
The oldid of the article that is to be shown, 0 for the current revision $mOldId. More... | |
Title | $mRedirectedFrom = null |
Title from which we were redirected here $mRedirectedFrom. More... | |
string false | $mRedirectUrl = false |
URL to redirect to or false if none $mRedirectUrl. More... | |
int | $mRevIdFetched = 0 |
Revision ID of revision we are working on $mRevIdFetched. More... | |
Revision | $mRevision = null |
Revision we are working on $mRevision. More... | |
ParserOutput | $mParserOutput |
ParserOutput object $mParserOutput. More... | |
Class for viewing MediaWiki article and history.
This maintains WikiPage functions for backwards compatibility.
See design.txt for an overview. Note: edit user interface and cache support functions have been moved to separate EditPage and HTMLFileCache classes.
Definition at line 36 of file Article.php.
Article::__construct | ( | Title | $title, |
$oldId = null |
|||
) |
Constructor and clear the article.
$title | Title Reference to a Title object. |
$oldId | Integer revision ID, null to fetch from request, zero for current |
Definition at line 110 of file Article.php.
References newPage().
Article::__call | ( | $fname, | |
$args | |||
) |
Article::__get | ( | $fname | ) |
Use PHP's magic __get handler to handle accessing of raw WikiPage fields for backwards compatibility.
string | $fname | Field name |
Definition at line 1974 of file Article.php.
References $fname.
Article::__set | ( | $fname, | |
$fvalue | |||
) |
Article::adjustDisplayTitle | ( | ParserOutput | $pOutput | ) |
Adjust title for pages with displaytitle, -{T|}- or language conversion.
$pOutput | ParserOutput |
Definition at line 770 of file Article.php.
References getContext(), and ParserOutput\getTitleText().
Referenced by view().
Article::clear | ( | ) |
Clear the object.
Definition at line 211 of file Article.php.
Article::commitRollback | ( | $fromP, | |
$summary, | |||
$bot, | |||
& | $resultDetails, | ||
User | $guser = null |
||
) |
$fromP | |
$summary | |
$bot | |
$resultDetails | |
$guser | User |
Definition at line 2088 of file Article.php.
References $summary, and getContext().
Article::confirmDelete | ( | $reason | ) |
Output deletion confirmation dialog.
string | $reason | prefilled reason |
Definition at line 1641 of file Article.php.
References $form, $link, $title, $user, array(), Xml\checkLabel(), Xml\closeElement(), Xml\element(), getContext(), getTitle(), Html\hidden(), Html\input(), Xml\label(), Linker\link(), Xml\listDropDown(), Title\makeTitle(), NS_MEDIAWIKI, Xml\openElement(), LogEventsList\showLogExtract(), Xml\submitButton(), Xml\tags(), text, wfDebug(), wfMessage(), and wfRunHooks().
Referenced by delete().
Article::delete | ( | ) |
UI entry point for page deletion.
Reimplemented in ImagePage.
Definition at line 1531 of file Article.php.
References $e, $title, $user, array(), confirmDelete(), doDelete(), WatchAction\doWatchOrUnwatch(), Xml\element(), generateReason(), getContext(), getTitle(), global, Linker\linkKnown(), LogEventsList\showLogExtract(), wfDebug(), wfEscapeWikiText(), wfMessage(), and wfReadOnly().
Article::doDelete | ( | $reason, | |
$suppress = false |
|||
) |
Perform a deletion and output success or failure messages.
string | $reason | |
bool | $suppress |
Definition at line 1761 of file Article.php.
References $error, Xml\element(), getContext(), getTitle(), LogEventsList\showLogExtract(), wfEscapeWikiText(), and wfMessage().
Referenced by delete().
$reason | string |
$suppress | bool |
$id | int |
$commit | bool |
$error | string |
Definition at line 2060 of file Article.php.
References $error.
Article::doRollback | ( | $fromP, | |
$summary, | |||
$token, | |||
$bot, | |||
& | $resultDetails, | ||
User | $user = null |
||
) |
$fromP | |
$summary | |
$token | |
$bot | |
$resultDetails | |
$user | User |
Definition at line 2075 of file Article.php.
References $summary, $user, and getContext().
Article::fetchContent | ( | ) |
Get text of an article from database Does NOT follow redirects.
Definition at line 367 of file Article.php.
References $mContent, array(), ContentHandler\deprecated(), fetchContentObject(), ContentHandler\getContentText(), ContentHandler\runLegacyHooks(), wfProfileIn(), and wfProfileOut().
Referenced by loadContent().
|
protected |
Get text content object Does NOT follow redirects.
Definition at line 399 of file Article.php.
References $mContentObject, array(), Revision\FOR_THIS_USER, getContext(), getOldID(), getTitle(), Revision\newFromId(), wfDebug(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Referenced by fetchContent(), getContentObject(), getRevisionFetched(), showCssOrJsPage(), and view().
|
static |
Converts a String robot policy into an associative array, to allow merging of several policies using array_merge().
$policy | Mixed, returns empty array on null/false/'', transparent to already-converted arrays, converts String. |
Definition at line 947 of file Article.php.
Referenced by getRobotPolicy(), and OutputPage\setRobotPolicy().
Article::generateReason | ( | & | $hasHistory | ) |
$hasHistory | bool |
Definition at line 2097 of file Article.php.
References $title, and ContentHandler\getForTitle().
Referenced by delete().
|
static |
$oldtext | |
$newtext | |
$flags |
Definition at line 2140 of file Article.php.
References $flags, and WikiPage\getAutosummary().
Referenced by ArticleTest\testStaticFunctions().
Article::getContent | ( | ) |
Note that getContent/loadContent do not follow redirects anymore.
If you need to fetch redirectable content easily, try the shortcut in WikiPage::getRedirectTarget()
This function has side effects! Do not use this function if you only want the real revision text if any.
Definition at line 233 of file Article.php.
References ContentHandler\deprecated(), getContentObject(), and ContentHandler\getContentText().
|
protected |
Returns a Content object representing the pages effective display content, not necessarily the revision's content!
Note that getContent/loadContent do not follow redirects anymore. If you need to fetch redirectable content easily, try the shortcut in WikiPage::getRedirectTarget()
This function has side effects! Do not use this function if you only want the real revision text if any.
Reimplemented in ImagePage.
Definition at line 254 of file Article.php.
References $mContentObject, fetchContentObject(), getContext(), getTitle(), ContentHandler\makeContent(), NS_MEDIAWIKI, wfProfileIn(), and wfProfileOut().
Referenced by getContent(), and view().
Article::getContext | ( | ) |
Gets the context this Article is executed in.
Definition at line 1922 of file Article.php.
References $mContext, RequestContext\getMain(), and wfDebug().
Referenced by ImageHistoryPseudoPager\__construct(), adjustDisplayTitle(), CategoryPage\closeShowCategory(), commitRollback(), confirmDelete(), delete(), doDelete(), ImagePage\doRenderLangOpt(), doRollback(), fetchContentObject(), getContentObject(), getOldIDFromRequest(), getParserOptions(), getRobotPolicy(), ImagePage\imageDupes(), ImagePage\imageHistory(), ImagePage\imageLinks(), isFileCacheable(), ImagePage\openShowImage(), ImagePage\printSharedImageText(), ImagePage\render(), render(), setOldSubtitle(), showCssOrJsPage(), showDeletedRevisionHeader(), showDiffPage(), ImagePage\showError(), showMissingArticle(), showNamespaceHeader(), showPatrolFooter(), showRedirectedFromHeader(), showViewFooter(), tryFileCache(), updateRestrictions(), ImagePage\uploadLinksBox(), CategoryPage\view(), ImagePage\view(), view(), and viewRedirect().
Article::getOldID | ( | ) |
Definition at line 284 of file Article.php.
References $mOldId, and getOldIDFromRequest().
Referenced by fetchContentObject(), getRobotPolicy(), isCurrent(), showDeletedRevisionHeader(), showDiffPage(), showMissingArticle(), ImagePage\view(), and view().
Article::getOldIDFromRequest | ( | ) |
Sets $this->mRedirectUrl to a correct URL if the query parameters are incorrect.
Definition at line 297 of file Article.php.
References array(), getContext(), getTitle(), and Revision\newFromId().
Referenced by getOldID().
Article::getPage | ( | ) |
Article::getParserOptions | ( | ) |
Get parser options suitable for rendering the primary article wikitext.
Definition at line 1898 of file Article.php.
References $mParserOptions, and getContext().
Referenced by getParserOutput(), and view().
Article::getParserOutput | ( | $oldid = null , |
|
User | $user = null |
||
) |
#-
Lightweight method to get the parser output for a page, checking the parser cache and so on. Doesn't consider most of the stuff that WikiPage::view is forced to consider, so it's not appropriate to use there.
Definition at line 1867 of file Article.php.
References $user, and getParserOptions().
Article::getRevIdFetched | ( | ) |
Use this to fetch the rev ID used on page views.
Definition at line 492 of file Article.php.
References $mRevIdFetched.
Referenced by view().
Article::getRevisionFetched | ( | ) |
Get the fetched Revision object depending on request parameters or null on failure.
Definition at line 481 of file Article.php.
References $mRevision, and fetchContentObject().
Referenced by showDiffPage().
Article::getRobotPolicy | ( | $action, | |
$pOutput = null |
|||
) |
Get the robot policy to be used for the current view.
string | $action | the action= GET parameter |
$pOutput | ParserOutput|null |
Definition at line 867 of file Article.php.
References array(), formatRobotPolicy(), getContext(), getOldID(), getTitle(), global, IP\isValid(), Block\newFromTarget(), NS_USER, and NS_USER_TALK.
Referenced by showMissingArticle(), and view().
Article::getTitle | ( | ) |
Get the title object of the article.
Definition at line 194 of file Article.php.
Referenced by ImageHistoryPseudoPager\__construct(), CategoryPage\closeShowCategory(), confirmDelete(), delete(), doDelete(), ImagePage\doRenderLangOpt(), fetchContentObject(), getContentObject(), getOldIDFromRequest(), getRobotPolicy(), ImagePage\imageDupes(), ImagePage\imageLinks(), isFileCacheable(), ImagePage\loadFile(), ImagePage\openShowImage(), setOldSubtitle(), showCssOrJsPage(), showDeletedRevisionHeader(), showMissingArticle(), showNamespaceHeader(), showPatrolFooter(), showRedirectedFromHeader(), showViewFooter(), tryFileCache(), ImagePage\uploadLinksBox(), CategoryPage\view(), ImagePage\view(), view(), and viewRedirect().
Article::info | ( | ) |
Info about this page.
Definition at line 1936 of file Article.php.
References Action\factory(), and wfDeprecated().
Article::isCurrent | ( | ) |
Returns true if the currently-referenced revision is the current edit to this page (and it exists).
Definition at line 465 of file Article.php.
References getOldID().
Referenced by view().
Article::isFileCacheable | ( | ) |
Check if the page can be cached.
Definition at line 1839 of file Article.php.
References array(), getContext(), getTitle(), HTMLFileCache\useFileCache(), and wfRunHooks().
Referenced by tryFileCache().
Article::loadContent | ( | ) |
Load the revision (including text) into this object.
Definition at line 348 of file Article.php.
References fetchContent(), and wfDeprecated().
|
static |
Constructor from a page id.
int | $id | article ID to load |
Reimplemented in ImagePage, and CategoryPage.
Definition at line 128 of file Article.php.
References $t, and Title\newFromID().
|
static |
Create an Article object of the appropriate class for the given page.
$title | Title |
$context | IContextSource |
Definition at line 142 of file Article.php.
References $title, array(), Title\makeTitle(), NS_CATEGORY, NS_FILE, NS_MEDIA, and wfRunHooks().
Referenced by ApiParse\execute(), RebuildFileCache\execute(), MediaWiki\initializeArticle(), newFromWikiPage(), and DifferenceEngine\renderNewRevision().
|
static |
Create an Article object of the appropriate class for the given page.
$page | WikiPage |
$context | IContextSource |
Definition at line 174 of file Article.php.
References $article, WikiPage\getTitle(), and newFromTitle().
Referenced by ApiEditPage\execute(), and MediaWiki\initializeArticle().
|
protected |
$title | Title |
Reimplemented in ImagePage, and CategoryPage.
Definition at line 119 of file Article.php.
References $title.
Referenced by __construct().
|
static |
$title | Title |
Definition at line 2115 of file Article.php.
References $title, and WikiPage\onArticleCreate().
|
static |
$title | Title |
Definition at line 2122 of file Article.php.
References $title, and WikiPage\onArticleDelete().
|
static |
$title | Title |
Definition at line 2129 of file Article.php.
References $title, and WikiPage\onArticleEdit().
Article::protect | ( | ) |
action=protect handler
Definition at line 1516 of file Article.php.
References $form.
Referenced by unprotect().
Article::purge | ( | ) |
Handle action=purge.
Definition at line 1946 of file Article.php.
References Action\factory().
Article::render | ( | ) |
Handle action=render.
Reimplemented in ImagePage.
Definition at line 1507 of file Article.php.
References getContext(), and view().
Article::revert | ( | ) |
Handle action=revert.
Definition at line 1954 of file Article.php.
References Action\factory(), and wfDeprecated().
Article::rollback | ( | ) |
Handle action=rollback.
Definition at line 1963 of file Article.php.
References Action\factory(), and wfDeprecated().
|
static |
Definition at line 2108 of file Article.php.
References WikiPage\selectFields().
Referenced by ArticleTest\testStaticFunctions().
Article::setContext | ( | $context | ) |
Sets the context this Article is executed in.
$context | IContextSource |
Definition at line 1912 of file Article.php.
Article::setOldSubtitle | ( | $oldid = 0 | ) |
Generate the navigation links when browsing through an article revisions It shows the information as: Revision as of <date>; view current revision <- Previous version | Next Version ->
int | $oldid | revision ID of this article revision |
Definition at line 1321 of file Article.php.
References $mRevision, $timestamp, $user, array(), getContext(), Linker\getRevDeleteLink(), getTitle(), Linker\linkKnown(), Revision\newFromId(), Linker\revUserTools(), wfMessage(), and wfRunHooks().
Referenced by view().
Article::setParserOptions | ( | ParserOptions | $options | ) |
Override the ParserOptions used to render the primary article wikitext.
ParserOptions | $options |
MWException | if the parser options where already initialized. |
Definition at line 1885 of file Article.php.
References $options.
Article::setRedirectedFrom | ( | Title | $from | ) |
Tell the page view functions that this view was redirected from another page on the wiki.
$from | Title object. |
Definition at line 185 of file Article.php.
References $from.
|
protected |
Show a page view for a page formatted as CSS or JavaScript.
To be called by Article::view() only.
This is hooked by SyntaxHighlight_GeSHi to do syntax highlighting of these page views.
bool | $showCacheHint | whether to show a message telling the user to clear the browser cache (default: true). |
Definition at line 833 of file Article.php.
References $dir, array(), fetchContentObject(), getContext(), getTitle(), and ContentHandler\runLegacyHooks().
Referenced by view().
Article::showDeletedRevisionHeader | ( | ) |
If the revision requested for view is deleted, check permissions.
Send either an error message or a warning header to the output.
Definition at line 1278 of file Article.php.
References $link, $user, array(), Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, getContext(), getOldID(), and getTitle().
Referenced by view().
Article::showDiffPage | ( | ) |
Show a diff page according to current request variables.
For use within Article::view() only, other callers should use the DifferenceEngine class.
Definition at line 784 of file Article.php.
References $rev, $user, getContext(), getOldID(), getRevisionFetched(), list, and wfMessage().
Referenced by view().
Article::showMissingArticle | ( | ) |
Show the error text for a missing article.
For articles in the MediaWiki namespace, show the default message text. To be called from Article::view().
Definition at line 1179 of file Article.php.
References $user, array(), getContext(), getOldID(), getRobotPolicy(), getTitle(), global, in, is(), User\isIP(), User\newFromName(), NS_MEDIAWIKI, NS_USER, NS_USER_TALK, LogEventsList\showLogExtract(), user, wfEscapeWikiText(), wfMessage(), and wfRunHooks().
Referenced by view().
Article::showNamespaceHeader | ( | ) |
Show a header specific to the namespace currently being viewed, like [[MediaWiki:Talkpagetext]].
For Article::view().
Definition at line 1027 of file Article.php.
References array(), getContext(), getTitle(), and wfMessage().
Referenced by view().
Article::showPatrolFooter | ( | ) |
If patrol is possible, output a patrol UI box.
This is called from the footer section of ordinary page views. If patrol is not possible or not desired, does nothing. Side effect: When the patrol link is build, this method will call OutputPage::preventClickjacking() and load mediawiki.page.patrol.ajax.
Definition at line 1064 of file Article.php.
References $cache, $dbr, $link, $user, array(), DB_SLAVE, getContext(), getTitle(), global, RecentChange\isInRCLifespan(), Linker\linkKnown(), RecentChange\newFromConds(), wfGetDB(), wfGetMainCache(), wfMemcKey(), wfMessage(), wfProfileIn(), and wfProfileOut().
Referenced by showViewFooter().
Article::showRedirectedFromHeader | ( | ) |
If this request is a redirect view, send "redirected from" subtitle to the output.
Returns true if the header was needed, false if this is not a redirect view. Handles both local and remote redirects.
Definition at line 976 of file Article.php.
References array(), getContext(), getTitle(), global, Linker\linkKnown(), Linker\makeExternalLink(), wfMessage(), and wfRunHooks().
Referenced by view().
Article::showViewFooter | ( | ) |
Show the footer section of an ordinary page view.
Definition at line 1041 of file Article.php.
References array(), getContext(), getTitle(), IP\isValid(), NS_USER_TALK, showPatrolFooter(), and wfRunHooks().
Referenced by view().
|
protected |
checkLastModified returns true if it has taken care of all output to the client that is necessary for this request.
(that is, it has sent a cached version of the page)
Definition at line 1809 of file Article.php.
References $cache, array(), getContext(), getTitle(), isFileCacheable(), HTMLFileCache\newFromTitle(), and wfDebug().
Referenced by view().
Article::unprotect | ( | ) |
$limit | array |
$reason | string |
$cascade | int |
$expiry | array |
Definition at line 2040 of file Article.php.
References $limit, and getContext().
Article::view | ( | ) |
This is the default action of the index.php entry point: just view the page of the given title.
Reimplemented in ImagePage, and CategoryPage.
Definition at line 504 of file Article.php.
References $error, $pass, $user, adjustDisplayTitle(), array(), fetchContentObject(), getContentObject(), getContext(), getOldID(), getPage(), getParserOptions(), getRevIdFetched(), getRobotPolicy(), getTitle(), global, isCurrent(), ContentHandler\runLegacyHooks(), setOldSubtitle(), showCssOrJsPage(), showDeletedRevisionHeader(), showDiffPage(), showMissingArticle(), showNamespaceHeader(), showRedirectedFromHeader(), showViewFooter(), ParserCache\singleton(), text, tryFileCache(), viewRedirect(), wfDebug(), wfIncrStats(), wfMessage(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Referenced by render().
View redirect.
$target | Title|Array of destination(s) to redirect |
$appendSubtitle | Boolean [optional] |
$forceKnown | Boolean: should the image be shown as a bluelink regardless of existence? |
Definition at line 1446 of file Article.php.
References $link, $out, $title, array(), as, Html\element(), getContext(), getTitle(), global, Linker\link(), Linker\linkKnown(), and wfMessage().
Referenced by ImagePage\view(), and view().
string Article::$mContent |
Text of the revision we are working on $mContent.
Definition at line 59 of file Article.php.
Referenced by fetchContent().
bool Article::$mContentLoaded = false |
Is the content ($mContent) already loaded? $mContentLoaded.
Definition at line 70 of file Article.php.
Content Article::$mContentObject |
Content of the revision we are working on.
Definition at line 65 of file Article.php.
Referenced by fetchContentObject(), and getContentObject().
|
protected |
The context this Article is executed in $mContext.
{
Definition at line 44 of file Article.php.
Referenced by getContext().
int null Article::$mOldId |
The oldid of the article that is to be shown, 0 for the current revision $mOldId.
Definition at line 76 of file Article.php.
Referenced by getOldID().
|
protected |
The WikiPage object of this instance $mPage.
Definition at line 49 of file Article.php.
Referenced by getPage().
ParserOptions Article::$mParserOptions |
ParserOptions object for $wgUser articles $mParserOptions.
Definition at line 54 of file Article.php.
Referenced by getParserOptions().
ParserOutput Article::$mParserOutput |
ParserOutput object $mParserOutput.
Definition at line 101 of file Article.php.
Title Article::$mRedirectedFrom = null |
Title from which we were redirected here $mRedirectedFrom.
Definition at line 81 of file Article.php.
URL to redirect to or false if none $mRedirectUrl.
Definition at line 86 of file Article.php.
int Article::$mRevIdFetched = 0 |
Revision ID of revision we are working on $mRevIdFetched.
Definition at line 91 of file Article.php.
Referenced by getRevIdFetched().
Revision Article::$mRevision = null |
Revision we are working on $mRevision.
Definition at line 96 of file Article.php.
Referenced by getRevisionFetched(), and setOldSubtitle().