Manual:WikiPage.php

The  class represents a MediaWiki page and its history. It encapsulates access to page information stored in the database, and allows access to properties such as page text (in Wikitext format), flags, etc.

In theory, WikiPage is supposed to be the model object for pages, while the Article class handles the business and presentation functions.

Creating a new WikiPage object
To instantiate, call one of the static factory methods:
 * , where $id is a page id.
 * , where $row is a row fetched from the database containing all the fields listed in WikiPage::selectFields.

Methods

 * : Get the text of the latest revision, where $audience is one of (Revision::FOR_PUBLIC - to be displayed to all users, Revision::FOR_THIS_USER - to be displayed to $wgUser, or Revision::RAW - get the text regardless of permissions)
 * : Get the raw text of the latest revision

See http://svn.wikimedia.org/doc/classWikiPage.html for a complete lists of methods.