Manual:MediaWiki.php

Description
Among other things this file contains:


 * Function, called from index.php. Run the current MediaWiki instance, calling  ,  ,   and.

It's primarily used in requests to , explicitly called by ApiMain.php before 1.19, although since 1.19 it works for index.php requests too.
 * Function : check if the maximum lag of database slaves is higher than   parameter, and if it's the case, output an error message.

If the  parameter is passed, it will override the. If the  parameter isn't passed and the   parameter is passed, it will override the   if it's not a special page.
 * Function  which creates a Title object depending on the   parameter passed to index.php.


 * Function  (before version 1.18 it was called , and before version 1.16 it was called  ) which does the most of the work. It:


 * Checks for invalid titles, or read permission errors


 * Performs interwiki redirects and canonical redirects


 * If it's a special page, calls the special page code


 * Calls, and


 * Calls  if   returned an article, or


 * Calls  if   returned a string.

Then it checks if it is a redirect and if it's the case, recreate another Article from the target of the redirect and changes   and  . It can return either:
 * Function, which creates an Article object from the Title given.


 * An article object, which will be passed  to execute the requested action


 * A string if it's an interwiki redirect or a redirect to a special page

For example, in the case of viewing a page, function "view" in  is called.
 * Function  (called by  ) which performs most actions, including creating the HTML.


 * Function  (called by  ) which does the following:


 * Perform deferred updates


 * Commit any database transactions

Called from  (it was called from   before 1.23).
 * Function  (  before 1.23), which runs zero, one or more jobs from the Job queue, depending on  .