Manual:WikiPage.php/pt

A classe  representa uma página MediaWiki e o seu histórico. 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. If you have an Article object, you can get a WikiPage object using.

Criação de um novo objeto da 'Página Wiki'
To instantiate, call one of the static factory methods:
 * , where  is a Title instance.
 * , where  is a page id.
 * , where  is a row fetched from the database containing all the fields listed in WikiPage::selectFields.

Métodos

 * : Get the text of the latest revision, where $audience is one of:
 * - to be displayed to all users
 * - to be displayed to
 * - get the text regardless of permissions
 * - Get the raw text of the latest revision.
 * As of v1.21, these functions have been deprecated; use instead:

See https://doc.wikimedia.org/mediawiki-core/master/php/classWikiPage.html for a complete lists of methods.

Accessors

 * - Get the title object of the article.