[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/ -> MediaWiki.php (summary)

Helper class for the index.php entry point. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 704 lines (24 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

MediaWiki:: (12 methods):
  __construct()
  parseTitle()
  getTitle()
  getAction()
  performRequest()
  initializeArticle()
  performAction()
  run()
  checkMaxLag()
  main()
  restInPeace()
  triggerJobs()


Class: MediaWiki  - X-Ref

The MediaWiki class is the helper class for the index.php entry point.

__construct( IContextSource $context = null )   X-Ref

param: IContextSource|null $context

parseTitle()   X-Ref
Parse the request to get the Title object

return: Title Title object to be $wgTitle

getTitle()   X-Ref
Get the Title object that we'll be acting on, as specified in the WebRequest

return: Title

getAction()   X-Ref
Returns the name of the action that will be executed.

return: string Action

performRequest()   X-Ref
Performs the request.
- bad titles
- read restriction
- local interwiki redirects
- redirect loop
- special pages
- normal pages

return: void

initializeArticle()   X-Ref
Initialize the main Article object for "standard" actions (view, etc)
Create an Article object for the page, following redirects if needed.

return: mixed An Article, or a string to redirect to another URL

performAction( Page $page, Title $requestTitle )   X-Ref
Perform one of the "standard" actions

param: Page $page
param: Title $requestTitle The original title, before any redirects were applied

run()   X-Ref
Run the current MediaWiki instance
index.php just calls this


checkMaxLag()   X-Ref
Checks if the request should abort due to a lagged server,
for given maxlag parameter.

return: bool

main()   X-Ref
No description

restInPeace()   X-Ref
Ends this task peacefully


triggerJobs()   X-Ref
Potentially open a socket and sent an HTTP request back to the server
to run a specified number of jobs. This registers a callback to cleanup
the socket once it's done.




Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1