BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
Article Class Reference
Inheritance diagram for Article:
Collaboration diagram for Article:

Public Member Functions

 __construct (Title $title, $oldId=null)
 
 getRedirectedFrom ()
 
 setRedirectedFrom (Title $from)
 
 getTitle ()
 
 getPage ()
 
 clear ()
 
 getOldID ()
 
 getOldIDFromRequest ()
 
 isCurrent ()
 
 getRevisionFetched ()
 
 getRevIdFetched ()
 
 view ()
 
 adjustDisplayTitle (ParserOutput $pOutput)
 
 getRobotPolicy ($action, $pOutput=null)
 
 showRedirectedFromHeader ()
 
 showNamespaceHeader ()
 
 showViewFooter ()
 
 showPatrolFooter ()
 
 showMissingArticle ()
 
 showDeletedRevisionHeader ()
 
 setOldSubtitle ($oldid=0)
 
 viewRedirect ($target, $appendSubtitle=true, $forceKnown=false)
 
 addHelpLink ($to, $overrideBaseUrl=false)
 
 render ()
 
 protect ()
 
 unprotect ()
 
 delete ()
 
 confirmDelete ($reason)
 
 doDelete ($reason, $suppress=false)
 
 isFileCacheable ($mode=HTMLFileCache::MODE_NORMAL)
 
 getParserOutput ($oldid=null, User $user=null)
 
 setParserOptions (ParserOptions $options)
 
 getParserOptions ()
 
 setContext ($context)
 
 getContext ()
 
 __get ($fname)
 
 __set ($fname, $fvalue)
 
 checkFlags ($flags)
 
 checkTouched ()
 
 clearPreparedEdit ()
 
 doDeleteArticleReal ($reason, $suppress=false, $u1=null, $u2=null, &$error= '', User $user=null, $tags=[])
 
 doDeleteUpdates ($id, Content $content=null)
 
 doEditContent (Content $content, $summary, $flags=0, $baseRevId=false, User $user=null, $serialFormat=null)
 
 doEditUpdates (Revision $revision, User $user, array $options=[])
 
 doPurge ()
 
 doViewUpdates (User $user, $oldid=0)
 
 exists ()
 
 followRedirect ()
 
 getActionOverrides ()
 
 getAutoDeleteReason (&$hasHistory)
 
 getCategories ()
 
 getComment ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getContentHandler ()
 
 getContentModel ()
 
 getContributors ()
 
 getCreator ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getDeletionUpdates (Content $content=null)
 
 getHiddenCategories ()
 
 getId ()
 
 getLatest ()
 
 getLinksTimestamp ()
 
 getMinorEdit ()
 
 getOldestRevision ()
 
 getRedirectTarget ()
 
 getRedirectURL ($rt)
 
 getRevision ()
 
 getTimestamp ()
 
 getTouched ()
 
 getUndoContent (Revision $undo, Revision $undoafter=null)
 
 getUser ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 getUserText ($audience=Revision::FOR_PUBLIC, User $user=null)
 
 hasViewableContent ()
 
 insertOn ($dbw, $pageId=null)
 
 insertProtectNullRevision ($revCommentMsg, array $limit, array $expiry, $cascade, $reason, $user=null)
 
 insertRedirect ()
 
 insertRedirectEntry (Title $rt, $oldLatest=null)
 
 isCountable ($editInfo=false)
 
 isRedirect ()
 
 loadFromRow ($data, $from)
 
 loadPageData ($from= 'fromdb')
 
 lockAndGetLatest ()
 
 makeParserOptions ($context)
 
 pageDataFromId ($dbr, $id, $options=[])
 
 pageDataFromTitle ($dbr, $title, $options=[])
 
 prepareContentForEdit (Content $content, $revision=null, User $user=null, $serialFormat=null, $useCache=true)
 
 protectDescription (array $limit, array $expiry)
 
 protectDescriptionLog (array $limit, array $expiry)
 
 replaceSectionAtRev ($sectionId, Content $sectionContent, $sectionTitle= '', $baseRevId=null)
 
 replaceSectionContent ($sectionId, Content $sectionContent, $sectionTitle= '', $edittime=null)
 
 setTimestamp ($ts)
 
 shouldCheckParserCache (ParserOptions $parserOptions, $oldId)
 
 supportsSections ()
 
 triggerOpportunisticLinksUpdate (ParserOutput $parserOutput)
 
 updateCategoryCounts (array $added, array $deleted, $id=0)
 
 updateIfNewerOn ($dbw, $revision)
 
 updateRedirectOn ($dbw, $redirectTitle, $lastRevIsRedirect=null)
 
 updateRevisionOn ($dbw, $revision, $lastRevision=null, $lastRevIsRedirect=null)
 
 doUpdateRestrictions (array $limit, array $expiry, &$cascade, $reason, User $user)
 
 updateRestrictions ($limit=[], $reason= '', &$cascade=0, $expiry=[])
 
 doDeleteArticle ($reason, $suppress=false, $u1=null, $u2=null, &$error= '')
 
 doRollback ($fromP, $summary, $token, $bot, &$resultDetails, User $user=null)
 
 commitRollback ($fromP, $summary, $bot, &$resultDetails, User $guser=null)
 
 generateReason (&$hasHistory)
 

Static Public Member Functions

static newFromID ($id)
 
static newFromTitle ($title, IContextSource $context)
 
static newFromWikiPage (WikiPage $page, IContextSource $context)
 
static formatRobotPolicy ($policy)
 
static purgePatrolFooterCache ($articleID)
 

Public Attributes

 $mParserOptions
 
 $mContent
 
 $mContentObject
 
 $mContentLoaded = false
 
 $mOldId
 
 $mRedirectedFrom = null
 
 $mRedirectUrl = false
 
 $mRevIdFetched = 0
 
 $mRevision = null
 
 $mParserOutput
 

Protected Member Functions

 newPage (Title $title)
 
 getContentObject ()
 
 fetchContentObject ()
 
 showDiffPage ()
 
 tryFileCache ()
 

Protected Attributes

 $mContext
 
 $mPage
 

Detailed Description

Class for viewing MediaWiki article and history.

This maintains WikiPage functions for backwards compatibility.

Todo:
Move and rewrite code to an Action class

See design.txt for an overview. Note: edit user interface and cache support functions have been moved to separate EditPage and HTMLFileCache classes.

Constructor & Destructor Documentation

Article::__construct ( Title  $title,
  $oldId = null 
)

Constructor and clear the article

Parameters
Title$titleReference to a Title object.
int$oldIdRevision ID, null to fetch from request, zero for current

Member Function Documentation

Article::__get (   $fname)

Use PHP's magic __get handler to handle accessing of raw WikiPage fields for backwards compatibility.

Parameters
string$fnameField name
Returns
mixed
Article::__set (   $fname,
  $fvalue 
)

Use PHP's magic __set handler to handle setting of raw WikiPage fields for backwards compatibility.

Parameters
string$fnameField name
mixed$fvalueNew value
Article::addHelpLink (   $to,
  $overrideBaseUrl = false 
)

Adds help link with an icon via page indicators. Link target can be overridden by a local message containing a wikilink: the message key is: 'namespace-' + namespace number + '-helppage'.

Parameters
string$toTarget MediaWiki.org page title or encoded URL.
bool$overrideBaseUrlWhether $url is a full URL, to avoid MW.o.
Since
1.25
Article::adjustDisplayTitle ( ParserOutput  $pOutput)

Adjust title for pages with displaytitle, -{T|}- or language conversion

Parameters
ParserOutput$pOutput
Article::checkFlags (   $flags)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::checkFlags
Article::checkTouched ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::checkTouched
Article::clear ( )

Clear the object

Article::clearPreparedEdit ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::clearPreparedEdit
Article::commitRollback (   $fromP,
  $summary,
  $bot,
$resultDetails,
User  $guser = null 
)
Parameters
string$fromP
string$summary
bool$bot
array&$resultDetails
User | null$guser
Returns
array
Article::confirmDelete (   $reason)

Output deletion confirmation dialog

Todo:
FIXME: Move to another file?
Parameters
string$reasonPrefilled reason
Article::delete ( )

UI entry point for page deletion

Article::doDelete (   $reason,
  $suppress = false 
)

Perform a deletion and output success or failure messages

Parameters
string$reason
bool$suppress
Article::doDeleteArticle (   $reason,
  $suppress = false,
  $u1 = null,
  $u2 = null,
$error = '' 
)
Parameters
string$reason
bool$suppress
int$u1Unused
bool$u2Unused
string&$error
Returns
bool
Article::doDeleteArticleReal (   $reason,
  $suppress = false,
  $u1 = null,
  $u2 = null,
$error = '',
User  $user = null,
  $tags = [] 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::doDeleteArticleReal
Article::doDeleteUpdates (   $id,
Content  $content = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::doDeleteUpdates
Article::doEditContent ( Content  $content,
  $summary,
  $flags = 0,
  $baseRevId = false,
User  $user = null,
  $serialFormat = null 
)

Call to WikiPage function for backwards compatibility.

Deprecated:
since 1.29. Use WikiPage::doEditContent() directly instead
See Also
WikiPage::doEditContent
Article::doEditUpdates ( Revision  $revision,
User  $user,
array  $options = [] 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::doEditUpdates
Article::doPurge ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::doPurge
Note
In 1.28 (and only 1.28), this took a $flags parameter that controlled how much purging was done.
Article::doRollback (   $fromP,
  $summary,
  $token,
  $bot,
$resultDetails,
User  $user = null 
)
Parameters
string$fromP
string$summary
string$token
bool$bot
array&$resultDetails
User | null$user
Returns
array
Article::doUpdateRestrictions ( array  $limit,
array  $expiry,
$cascade,
  $reason,
User  $user 
)
Parameters
array$limit
array$expiry
bool&$cascade
string$reason
User$user
Returns
Status
Article::doViewUpdates ( User  $user,
  $oldid = 0 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::doViewUpdates
Article::exists ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::exists
Article::fetchContentObject ( )
protected

Get text content object Does NOT follow redirects.

Todo:
When is this null?
Note
Code that wants to retrieve page content from the database should use WikiPage::getContent().
Returns
Content|null|bool
Since
1.21
Article::followRedirect ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::followRedirect
static Article::formatRobotPolicy (   $policy)
static

Converts a String robot policy into an associative array, to allow merging of several policies using array_merge().

Parameters
array | string$policyReturns empty array on null/false/'', transparent to already-converted arrays, converts string.
Returns
array 'index' => <indexpolicy>, 'follow' => <followpolicy>
Article::generateReason ( $hasHistory)
Parameters
bool&$hasHistory
Returns
mixed
Article::getActionOverrides ( )

Call to WikiPage function for backwards compatibility.

See Also
ContentHandler::getActionOverrides
Article::getAutoDeleteReason ( $hasHistory)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getAutoDeleteReason
Article::getCategories ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getCategories
Article::getComment (   $audience = Revision::FOR_PUBLIC,
User  $user = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getComment
Article::getContentHandler ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getContentHandler
Article::getContentModel ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getContentModel
Article::getContentObject ( )
protected

Returns a Content object representing the pages effective display content, not necessarily the revision's content!

Note that getContent does 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.

Returns
Content Return the content of this revision
Since
1.21
Article::getContext ( )

Gets the context this Article is executed in

Returns
IContextSource
Since
1.18
Article::getContributors ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getContributors
Article::getCreator (   $audience = Revision::FOR_PUBLIC,
User  $user = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getCreator
Article::getDeletionUpdates ( Content  $content = null)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getDeletionUpdates
Article::getHiddenCategories ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getHiddenCategories
Article::getId ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getId
Article::getLatest ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getLatest
Article::getLinksTimestamp ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getLinksTimestamp
Article::getMinorEdit ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getMinorEdit
Article::getOldestRevision ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getOldestRevision
Article::getOldID ( )
Returns
int The oldid of the article that is to be shown, 0 for the current revision
Article::getOldIDFromRequest ( )

Sets $this->mRedirectUrl to a correct URL if the query parameters are incorrect

Returns
int The old id for the request
Article::getPage ( )

Get the WikiPage object of this instance

Since
1.19
Returns
WikiPage
Article::getParserOptions ( )

Get parser options suitable for rendering the primary article wikitext

Returns
ParserOptions
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.

Since
1.16 (r52326) for LiquidThreads
Parameters
int | null$oldidRevision ID or null
User$userThe relevant user
Returns
ParserOutput|bool ParserOutput or false if the given revision ID is not found
Article::getRedirectedFrom ( )

Get the page this view was redirected from

Returns
Title|null
Since
1.28
Article::getRedirectTarget ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getRedirectTarget
Article::getRedirectURL (   $rt)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getRedirectURL
Article::getRevIdFetched ( )

Use this to fetch the rev ID used on page views

Returns
int Revision ID of last article revision
Article::getRevision ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getRevision
Article::getRevisionFetched ( )

Get the fetched Revision object depending on request parameters or null on failure.

Since
1.19
Returns
Revision|null
Article::getRobotPolicy (   $action,
  $pOutput = null 
)

Get the robot policy to be used for the current view

Parameters
string$actionThe action= GET parameter
ParserOutput | null$pOutput
Returns
array The policy that should be set
Todo:
actions other than 'view'
Article::getTimestamp ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getTimestamp
Article::getTitle ( )

Get the title object of the article

Returns
Title Title object of this page
Article::getTouched ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getTouched
Article::getUndoContent ( Revision  $undo,
Revision  $undoafter = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getUndoContent
Article::getUser (   $audience = Revision::FOR_PUBLIC,
User  $user = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getUser
Article::getUserText (   $audience = Revision::FOR_PUBLIC,
User  $user = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::getUserText
Article::hasViewableContent ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::hasViewableContent
Article::insertOn (   $dbw,
  $pageId = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::insertOn
Article::insertProtectNullRevision (   $revCommentMsg,
array  $limit,
array  $expiry,
  $cascade,
  $reason,
  $user = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::insertProtectNullRevision
Article::insertRedirect ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::insertRedirect
Article::insertRedirectEntry ( Title  $rt,
  $oldLatest = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::insertRedirectEntry
Article::isCountable (   $editInfo = false)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::isCountable
Article::isCurrent ( )

Returns true if the currently-referenced revision is the current edit to this page (and it exists).

Returns
bool
Article::isFileCacheable (   $mode = HTMLFileCache::MODE_NORMAL)

Check if the page can be cached

Parameters
int$modeOne of the HTMLFileCache::MODE_* constants (since 1.28)
Returns
bool
Article::isRedirect ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::isRedirect
Article::loadFromRow (   $data,
  $from 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::loadFromRow
Article::loadPageData (   $from = 'fromdb')

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::loadPageData
Article::lockAndGetLatest ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::lockAndGetLatest
Article::makeParserOptions (   $context)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::makeParserOptions
static Article::newFromID (   $id)
static

Constructor from a page id

Parameters
int$idArticle ID to load
Returns
Article|null
static Article::newFromTitle (   $title,
IContextSource  $context 
)
static

Create an Article object of the appropriate class for the given page.

Parameters
Title$title
IContextSource$context
Returns
Article
static Article::newFromWikiPage ( WikiPage  $page,
IContextSource  $context 
)
static

Create an Article object of the appropriate class for the given page.

Parameters
WikiPage$page
IContextSource$context
Returns
Article
Article::newPage ( Title  $title)
protected
Parameters
Title$title
Returns
WikiPage
Article::pageDataFromId (   $dbr,
  $id,
  $options = [] 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::pageDataFromId
Article::pageDataFromTitle (   $dbr,
  $title,
  $options = [] 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::pageDataFromTitle
Article::prepareContentForEdit ( Content  $content,
  $revision = null,
User  $user = null,
  $serialFormat = null,
  $useCache = true 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::prepareContentForEdit
Article::protect ( )

action=protect handler

Article::protectDescription ( array  $limit,
array  $expiry 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::protectDescription
Article::protectDescriptionLog ( array  $limit,
array  $expiry 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::protectDescriptionLog
static Article::purgePatrolFooterCache (   $articleID)
static

Purge the cache used to check if it is worth showing the patrol footer For example, it is done during re-uploads when file patrol is used.

Parameters
int$articleIDID of the article to purge
Since
1.27
bool Whether Article::render ( )

Handle action=render

here, there doesn't seem to be any other way to stop calling OutputPage::enableSectionEditLinks() and still have it work as it did before.

Article::replaceSectionAtRev (   $sectionId,
Content  $sectionContent,
  $sectionTitle = '',
  $baseRevId = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::replaceSectionAtRev
Article::replaceSectionContent (   $sectionId,
Content  $sectionContent,
  $sectionTitle = '',
  $edittime = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::replaceSectionContent
Article::setContext (   $context)

Sets the context this Article is executed in

Parameters
IContextSource$context
Since
1.18
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 ->

Parameters
int$oldidRevision ID of this article revision
Article::setParserOptions ( ParserOptions  $options)

Override the ParserOptions used to render the primary article wikitext.

Parameters
ParserOptions$options
Exceptions
MWExceptionIf the parser options where already initialized.
Article::setRedirectedFrom ( Title  $from)

Tell the page view functions that this view was redirected from another page on the wiki.

Parameters
Title$from
Article::setTimestamp (   $ts)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::setTimestamp
Article::shouldCheckParserCache ( ParserOptions  $parserOptions,
  $oldId 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::shouldCheckParserCache
Article::showDeletedRevisionHeader ( )

If the revision requested for view is deleted, check permissions. Send either an error message or a warning header to the output.

Returns
bool True if the view is allowed, false if not.
Article::showDiffPage ( )
protected

Show a diff page according to current request variables. For use within Article::view() only, other callers should use the DifferenceEngine class.

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().

Article::showNamespaceHeader ( )

Show a header specific to the namespace currently being viewed, like [[MediaWiki:Talkpagetext]]. For Article::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.

Returns
bool
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.

Returns
bool
Article::showViewFooter ( )

Show the footer section of an ordinary page view

Article::supportsSections ( )

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::supportsSections
Article::triggerOpportunisticLinksUpdate ( ParserOutput  $parserOutput)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::triggerOpportunisticLinksUpdate
Article::tryFileCache ( )
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)

Returns
bool True if cached version send, false otherwise
Article::unprotect ( )

action=unprotect handler (alias)

Article::updateCategoryCounts ( array  $added,
array  $deleted,
  $id = 0 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::updateCategoryCounts
Article::updateIfNewerOn (   $dbw,
  $revision 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::updateIfNewerOn
Article::updateRedirectOn (   $dbw,
  $redirectTitle,
  $lastRevIsRedirect = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::updateRedirectOn
Article::updateRestrictions (   $limit = [],
  $reason = '',
$cascade = 0,
  $expiry = [] 
)
Parameters
array$limit
string$reason
int&$cascade
array$expiry
Returns
bool
Article::updateRevisionOn (   $dbw,
  $revision,
  $lastRevision = null,
  $lastRevIsRedirect = null 
)

Call to WikiPage function for backwards compatibility.

See Also
WikiPage::updateRevisionOn
Article::view ( )

This is the default action of the index.php entry point: just view the page of the given title.

Article::viewRedirect (   $target,
  $appendSubtitle = true,
  $forceKnown = false 
)

Return the HTML for the top of a redirect page

Chances are you should just be using the ParserOutput from WikitextContent::getParserOutput instead of calling this for redirects.

Parameters
Title | array$targetDestination(s) to redirect
bool$appendSubtitle[optional]
bool$forceKnownShould the image be shown as a bluelink regardless of existence?
Returns
string Containing HTML with redirect link
Deprecated:
since 1.30

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