Manual:Article.php/pt-br

A classe   lida com a apresentação e interação com páginas MediaWiki e seu histórico. Ela está intimamente relacionada com a classe WikiPage, que fornece o objeto modelo para as páginas.

Este arquivo contém, por exemplo, uma versão da função  para a visualização de uma página, chamada a partir do arquivo   (outra versão está em  ). Esta função busca o wikitexto  da página do banco de dados usando funções ,   e  , e atribui isso a. Depois disso, chama a função  para processar , call one of the static factory methods:


 * , where  is an article id.
 * : creates an Article object of the appropriate class for the given title.
 * : creates an Article object of the appropriate class for the given page.

Methods

 * : get the text of this revision. This function has side effects. Do not use this function if you only want the real revision text if any.
 * (since 1.18): gets the context this Article is executed in.
 * : gets the oldid of the article that is to be shown, or 0 for the current revision.
 * (since 1.19): gets the WikiPage object of this instance.
 * : gets the parser options suitable for rendering the primary article wikitext.
 * : a lightweight method to get the parser output for a page, checking the parser cache and so on. It doesn't consider most of the stuff that  is forced to consider.
 * : gets the rev ID used on page views.
 * (since 1.19): get the fetched Revision object depending on request parameters or null on failure.
 * : gets the robot policy to be used for the current view.  is a string containing the action= GET parameter and.
 * : gets the Title associated with this page.
 * : returns true if the currently-referenced revision is the current edit to this page (and it exists).
 * : returns true if the page can be cached.
 * : this method handles the (default) action of viewing a page. Actions (like 'view', 'revert', 'delete', etc) are handled by Action subclasses. The  method of the ViewAction calls   to do the actual work.

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

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