Manual:Article.php

Description
The Article class represents a MediaWiki article and its history. It encapsulates access to the way articles are stored in the database, and allows access to properties such as article text (in Wikitext format), flags, etc.

This file contains e.g. one version of function "view" for viewing a page, called from Wiki.php (another version is in RawPage.php). This function fetches the wikitext $mContent of the page from the database using functions getContent, loadContent and fetchContent, and assigns this to $text. After that it calls function outputWikiText to process $text.

Article

 * $mComment
 * $mContent
 * $mContentLoaded
 * $mCounter
 * $mFileCache (v 1.6.10)
 * $mForUpdate
 * $mGoodAdjustment
 * $mId (v 1.6.10)
 * $mLatest
 * $mMinorEdit
 * $mOldId
 * $mRedirectedFrom
 * $mRedirectUrl
 * $mRevIdFetched
 * $mRevision
 * $mTable (v 1.6.10)
 * $mTimestamp
 * $mTitle
 * $mTotalAdjustment
 * $mTouched
 * $mUser
 * $mUserText

Hooks
Hooks called from this file are listed in the Category:MediaWiki hooks included in Article.php category.

Example
To create an Article object and print the raw wiki text from that article, for example from within an extension, you could do something like this: