BlueSpice MediaWiki master
|
Classes | |
class | MediaWikiServices |
class | OutputHandler |
Public Member Functions | |
__construct (IContextSource $context=null) | |
getTitle () | |
getAction () | |
run () | |
doPreOutputCommit (callable $postCommitWork=null) | |
doPostOutputShutdown ($mode= 'normal') | |
restInPeace ($mode= 'fast', $blocksHttpClient=true) | |
triggerJobs () | |
Static Public Member Functions | |
static | preOutputCommit (IContextSource $context, callable $postCommitWork=null) |
static | emitBufferedStatsdData (IBufferingStatsdDataFactory $stats, Config $config) |
The MediaWiki class is the helper class for the index.php entry point.
MediaWiki::__construct | ( | IContextSource | $context = null | ) |
IContextSource | null | $context |
MediaWiki::doPostOutputShutdown | ( | $mode = 'normal' | ) |
This function does work that can be done after the user gets the HTTP response so they don't block on it
This manages deferred updates, job insertion, final commit, and the logging of profiling data
string | $mode | Use 'fast' to always skip job running |
PhpUnusedLocalVariableInspection
PhpUnusedLocalVariableInspection
MediaWiki::doPreOutputCommit | ( | callable | $postCommitWork = null | ) |
|
static |
Send out any buffered statsd data according to sampling rules
IBufferingStatsdDataFactory | $stats | |
Config | $config |
ConfigException |
MediaWiki::getAction | ( | ) |
Returns the name of the action that will be executed.
MediaWiki::getTitle | ( | ) |
Get the Title object that we'll be acting on, as specified in the WebRequest
|
static |
This function commits all DB changes as needed before the user can receive a response (in case commit fails)
IContextSource | $context | |
callable | $postCommitWork | [default: null] |
MediaWiki::restInPeace | ( | $mode = 'fast' , |
|
$blocksHttpClient = true |
|||
) |
Ends this task peacefully
string | $mode | Use 'fast' to always skip job running |
bool | $blocksHttpClient | Whether this blocks an HTTP response to a client |
MediaWiki::run | ( | ) |
Run the current MediaWiki instance; index.php just calls this
MediaWiki::triggerJobs | ( | ) |
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.