MediaWiki
REL1_19
|
The MediaWiki class is the helper class for the index.php entry point. More...
Public Member Functions | |
__construct (IContextSource $context=null) | |
finalCleanup () | |
Cleaning up request by doing deferred updates, DB transaction, and the output. | |
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) | |
Perform one of the "standard" actions. | |
performRequest () | |
Performs the request. | |
Private Attributes | |
$context |
The MediaWiki class is the helper class for the index.php entry point.
MediaWiki::__construct | ( | IContextSource $ | context = null | ) |
IContextSource | null | $context |
Definition at line 59 of file Wiki.php.
References $context, RequestContext\getMain(), and parseTitle().
static MediaWiki::articleFromTitle | ( | $ | title, |
IContextSource $ | context | ||
) | [static] |
Create an Article object of the appropriate class for the given page.
$title | Title |
$context | IContextSource |
Definition at line 303 of file Wiki.php.
References $title, Article\newFromTitle(), and wfDeprecated().
MediaWiki::checkMaxLag | ( | ) | [private] |
Checks if the request should abort due to a lagged server, for given maxlag parameter.
Definition at line 515 of file Wiki.php.
References $wgShowHostnames, echo, wfGetLB(), wfProfileIn(), and wfProfileOut().
Referenced by run().
MediaWiki::doJobs | ( | ) | [private] |
Do a job from the job queue.
Definition at line 416 of file Wiki.php.
References $job, $n, $output, $success, $t, $wgJobRunRate, Job\pop(), wfDebugLog(), and wfReadOnly().
Referenced by finalCleanup().
Cleaning up request by doing deferred updates, DB transaction, and the output.
Definition at line 399 of file Wiki.php.
References doJobs(), DeferredUpdates\doUpdates(), wfGetLBFactory(), wfProfileIn(), and wfProfileOut().
Referenced by main().
Returns the name of the action that will be executed.
Definition at line 313 of file Wiki.php.
References Action\getActionName().
Referenced by main(), and performAction().
Get the Title object that we'll be acting on, as specified in the WebRequest.
Definition at line 129 of file Wiki.php.
References parseTitle().
Referenced by main().
MediaWiki::initializeArticle | ( | ) | [private] |
Initialize the main Article object for "standard" actions (view, etc) Create an Article object for the page, following redirects if needed.
Definition at line 329 of file Wiki.php.
References $file, $title, $wgDisableHardRedirects, Article\newFromTitle(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Referenced by performRequest().
MediaWiki::main | ( | ) | [private] |
Definition at line 543 of file Wiki.php.
References $title, $wgTitle, $wgUseAjax, $wgUseFileCache, finalCleanup(), getAction(), getTitle(), Title\makeTitle(), HTMLFileCache\newFromTitle(), performRequest(), HTMLFileCache\useFileCache(), wfProfileIn(), and wfProfileOut().
Referenced by run().
MediaWiki::output | ( | OutputPage $ | x = null | ) |
MediaWiki::parseTitle | ( | ) | [private] |
Parse the request to get the Title object.
Definition at line 73 of file Wiki.php.
References $title, $wgContLang, SpecialPage\getTitleFor(), Title\makeTitle(), Revision\newFromId(), Title\newFromID(), Title\newFromURL(), and Title\newMainPage().
Referenced by __construct(), and getTitle().
MediaWiki::performAction | ( | Page $ | page | ) | [private] |
Perform one of the "standard" actions.
$page | Page |
Definition at line 465 of file Wiki.php.
References $output, $page, $title, $user, Action\factory(), getAction(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Referenced by performRequest().
MediaWiki::performRequest | ( | ) | [private] |
Performs the request.
Definition at line 147 of file Wiki.php.
References $output, $title, $url, $user, $wgServer, $wgTitle, $wgUsePathInfo, SpecialPageFactory\executePath(), SpecialPage\getTitleFor(), initializeArticle(), performAction(), SpecialPageFactory\resolveAlias(), wfExpandUrl(), wfProfileIn(), wfProfileOut(), and wfRunHooks().
Referenced by main().
MediaWiki::request | ( | WebRequest $ | x = null | ) |
Ends this task peacefully.
Definition at line 450 of file Wiki.php.
References MessageCache\logMessages(), wfDebug(), wfGetLBFactory(), and wfLogProfilingData().
Referenced by run().
MediaWiki::run | ( | ) |
Run the current MediaWiki instance index.php just calls this.
Definition at line 500 of file Wiki.php.
References checkMaxLag(), MWExceptionHandler\handle(), main(), and restInPeace().
MediaWiki::$context [private] |
Definition at line 34 of file Wiki.php.
Referenced by __construct().