MediaWiki
REL1_22
|
The MediaWiki class is the helper class for the index.php entry point. More...
Public Member Functions | |
__construct (IContextSource $context=null) | |
getAction () | |
Returns the name of the action that will be executed. | |
getTitle () | |
Get the Title object that we'll be acting on, as specified in the WebRequest. | |
output (OutputPage $x=null) | |
request (WebRequest $x=null) | |
restInPeace () | |
Ends this task peacefully. | |
run () | |
Run the current MediaWiki instance index.php just calls this. | |
Static Public Member Functions | |
static | articleFromTitle ($title, IContextSource $context) |
Create an Article object of the appropriate class for the given page. | |
Private Member Functions | |
checkMaxLag () | |
Checks if the request should abort due to a lagged server, for given maxlag parameter. | |
doJobs () | |
Do a job from the job queue. | |
initializeArticle () | |
Initialize the main Article object for "standard" actions (view, etc) Create an Article object for the page, following redirects if needed. | |
main () | |
parseTitle () | |
Parse the request to get the Title object. | |
performAction (Page $page, Title $requestTitle) | |
Perform one of the "standard" actions. | |
performRequest () | |
Performs the request. | |
Private Attributes | |
IContextSource | $context |
TODO: fold $output, etc, into this. |
The MediaWiki class is the helper class for the index.php entry point.
MediaWiki::__construct | ( | IContextSource $ | context = null | ) |
IContextSource | null | $context |
static MediaWiki::articleFromTitle | ( | $ | title, |
IContextSource $ | context | ||
) | [static] |
Create an Article object of the appropriate class for the given page.
$title | Title |
$context | IContextSource |
MediaWiki::checkMaxLag | ( | ) | [private] |
MediaWiki::doJobs | ( | ) | [private] |
Get the Title object that we'll be acting on, as specified in the WebRequest.
Definition at line 134 of file Wiki.php.
Referenced by main(), and Preferences\tryUISubmit().
MediaWiki::initializeArticle | ( | ) | [private] |
MediaWiki::main | ( | ) | [private] |
Definition at line 506 of file Wiki.php.
References $cache, $output, $timestamp, $title, $wgTitle, getAction(), getTitle(), global, Title\makeTitle(), Title\newFromText(), HTMLFileCache\newFromTitle(), performRequest(), HTMLFileCache\useFileCache(), wfDebugLog(), wfGetLBFactory(), wfProfileIn(), and wfProfileOut().
MediaWiki::output | ( | OutputPage $ | x = null | ) |
MediaWiki::parseTitle | ( | ) | [private] |
MediaWiki::performAction | ( | Page $ | page, |
Title $ | requestTitle | ||
) | [private] |
MediaWiki::performRequest | ( | ) | [private] |
MediaWiki::request | ( | WebRequest $ | x = null | ) |
MediaWiki::run | ( | ) |
IContextSource MediaWiki::$context [private] |