Manual:$wgArticle
From MediaWiki.org
|
|
This deprecated feature should no longer be used, but is still available for reasons of backwards compatibility. This feature was deprecated in version 1.19. |
| Global object: $wgArticle | |
|---|---|
| Article object (or child object of Article) corresponding with Title object | |
| Parameters: | $title |
| Deprecated in: | 1.19 |
| Class: | Article |
| Located in: | Article.php, CategoryPage.php, or ImagePage.php |
[edit] Details
The Article object encapsulates access to the "page" table of the database. The object represents an article, and maintains state such as text (in Wikitext format), flags, etc.
The CategoryPage and ImagePage objects are child objects of the Article object, and are used specifically for Category pages and Image pages.
[edit] Replacement
Use the Context object to get what you need. Depending on what you need you may have to instantiate a WikiPage or call an Action class method passing the Title from getTitle()