Manual:MediaWiki.php

Description
Among other things this file contains:


 * Function, called from index.php. Run the current MediaWiki instance, calling  ,  ,   and.
 * Function : check if the maximum lag of database slaves is higher than   parameter, and if it's the case, output an error message. It's primarily used in requests to api.php, explicitly called by ApiMain.php before 1.19, although since 1.19 it works for index.php requests too.
 * Function  which creates a Title object depending on the   parameter passed to index.php. 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  (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.
 * Function, which creates an Article object from the Title given. 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 $wgTitle and $wgArticle. It can return either:
 * 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
 * Function  (called by  ) which performs most actions, including creating the HTML. For example, in the case of viewing a page, function "view" in Article.php is called.
 * Function  (called by  ) which does the following:
 * Perform deferred updates
 * Commit any database transactions
 * Function  (  before 1.23), which runs zero, one or more jobs from the Job queue, depending on $wgJobRunRate. Called from   (it was called from   before 1.23).

Hooks

 * ArticleFromTitle
 * MediaWikiPerformAction
 * UnknownAction
 * InitializeArticleMaybeRedirect
 * CustomEditor
 * BeforeInitialize