MediaWiki  master
MediaWiki Class Reference

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

Collaboration diagram for MediaWiki:

Classes

class  MediaWikiServices
 MediaWikiServices is the service locator for the application scope of MediaWiki. More...
 
class  OutputHandler
 

Public Member Functions

 __construct (IContextSource $context=null)
 
 doPostOutputShutdown ()
 This function does work that can be done after the user gets the HTTP response so they don't block on it. More...
 
 doPreOutputCommit (callable $postCommitWork=null)
 
 getAction ()
 Returns the name of the action that will be executed. More...
 
 getTitle ()
 Get the Title object that we'll be acting on, as specified in the WebRequest. More...
 
 restInPeace ()
 Ends this task peacefully. More...
 
 run ()
 Run the current MediaWiki instance; index.php just calls this. More...
 

Static Public Member Functions

static emitBufferedStatsdData (IBufferingStatsdDataFactory $stats, Config $config)
 Send out any buffered statsd data according to sampling rules. More...
 
static preOutputCommit (IContextSource $context, callable $postCommitWork=null)
 This function commits all DB and session changes as needed before the client can receive a response (in case DB commit fails) and thus also before the response can trigger a subsequent related request by the client. More...
 

Private Member Functions

 initializeArticle ()
 Initialize the main Article object for "standard" actions (view, etc) Create an Article object for the page, following redirects if needed. More...
 
 main ()
 Determine and send the response headers and body for this web request. More...
 
 maybeDoHttpsRedirect ()
 If the stars are suitably aligned, do an HTTP->HTTPS redirect. More...
 
 outputResponsePayload ( $content)
 Print a response body to the current buffer (if there is one) or the server (otherwise) More...
 
 parseTitle ()
 Parse the request to get the Title object. More...
 
 performAction (Article $article, Title $requestTitle)
 Perform one of the "standard" actions. More...
 
 performRequest ()
 Performs the request. More...
 
 schedulePostSendJobs ()
 If enabled, after everything specific to this request is done, occasionally run jobs. More...
 
 setDBProfilingAgent ()
 Add a comment to future SQL queries for easy SHOW PROCESSLIST interpretation. More...
 
 shouldDoHttpRedirect ()
 Check if an HTTP->HTTPS redirect should be done. More...
 
 triggerAsyncJobs ( $n, LoggerInterface $runJobsLogger)
 
 triggerSyncJobs ( $n)
 
 tryNormaliseRedirect (Title $title)
 Handle redirects for uncanonical title requests. More...
 

Static Private Member Functions

static getUrlDomainDistance ( $url)
 

Private Attributes

string $action
 Cache what action this request is. More...
 
Config $config
 
IContextSource $context
 
int $postSendStrategy
 Class DEFER_* constant; how non-blocking post-response tasks should run. More...
 
const DEFER_CLI_MODE = 3
 Do not try to make post-send updates async (e.g. More...
 
const DEFER_FASTCGI_FINISH_REQUEST = 1
 Call fastcgi_finish_request() to make post-send updates async. More...
 
const DEFER_SET_LENGTH_AND_FLUSH = 2
 Set Content-Length and call ob_end_flush()/flush() to make post-send updates async. More...
 

Detailed Description

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

Definition at line 36 of file MediaWiki.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki::__construct ( IContextSource  $context = null)

Member Function Documentation

◆ doPostOutputShutdown()

MediaWiki::doPostOutputShutdown ( )

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

Since
1.26

Definition at line 818 of file MediaWiki.php.

References WebResponse\disableForPostSend(), restInPeace(), and MWExceptionHandler\rollbackPrimaryChangesAndLog().

Referenced by run().

◆ doPreOutputCommit()

MediaWiki::doPreOutputCommit ( callable  $postCommitWork = null)
See also
MediaWiki::preOutputCommit()
Parameters
callable | null$postCommitWork[default: null]
Since
1.26

Definition at line 653 of file MediaWiki.php.

References preOutputCommit().

Referenced by main().

◆ emitBufferedStatsdData()

static MediaWiki::emitBufferedStatsdData ( IBufferingStatsdDataFactory  $stats,
Config  $config 
)
static

Send out any buffered statsd data according to sampling rules.

For web requests, this is called once by MediaWiki::restInPeace(), which is post-send (after the response is sent to the client).

For maintenance scripts, especially long-running CLI scripts, it is called more often, to avoid OOM, since we buffer stats (T181385), based on the following heuristics:

  • Long-running scripts that involve database writes often use transactions to commit chunks of work. We flush from IDatabase::setTransactionListener, as wired up by MWLBFactory::applyGlobalState.
  • Long-running scripts that involve database writes but don't need any transactions will still periodically wait for replication to be graceful to the databases. We flush from ILBFactory::setWaitForReplicationListener as wired up by MWLBFactory::applyGlobalState.
  • Any other long-running scripts will probably report progress to stdout in some way. We also flush from Maintenance::output().
Parameters
IBufferingStatsdDataFactory$stats
Config$config
Exceptions
ConfigException
Since
1.31

Definition at line 1185 of file MediaWiki.php.

References $config, IBufferingStatsdDataFactory\clearData(), Config\get(), IBufferingStatsdDataFactory\getData(), IBufferingStatsdDataFactory\hasData(), and MWExceptionHandler\logException().

Referenced by MWLBFactory\applyGlobalState(), Maintenance\output(), restInPeace(), Maintenance\shutdown(), and wfLogProfilingData().

◆ getAction()

MediaWiki::getAction ( )

Returns the name of the action that will be executed.

Returns
string Action

Definition at line 174 of file MediaWiki.php.

References $action, and Action\getActionName().

Referenced by main(), and performAction().

◆ getTitle()

MediaWiki::getTitle ( )

Get the Title object that we'll be acting on, as specified in the WebRequest.

Returns
Title

Definition at line 158 of file MediaWiki.php.

References SpecialPage\getTitleFor(), and parseTitle().

Referenced by main(), and schedulePostSendJobs().

◆ getUrlDomainDistance()

static MediaWiki::getUrlDomainDistance (   $url)
staticprivate
Parameters
string$url
Returns
string Either "local", "remote" if in the farm, "external" otherwise

Definition at line 797 of file MediaWiki.php.

References WikiMap\getWikiFromUrl(), and WikiMap\isCurrentWikiId().

Referenced by preOutputCommit().

◆ initializeArticle()

MediaWiki::initializeArticle ( )
private

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

Returns
Article|string An Article, or a string to redirect to another URL

Definition at line 414 of file MediaWiki.php.

References $action, $file, $title, MediaWiki\MediaWikiServices\getInstance(), Article\newFromWikiPage(), and wfWarn().

Referenced by performRequest().

◆ main()

◆ maybeDoHttpsRedirect()

MediaWiki::maybeDoHttpsRedirect ( )
private

If the stars are suitably aligned, do an HTTP->HTTPS redirect.

Note: Do this after $wgTitle is setup, otherwise the hooks run from isRegistered() will do all sorts of weird stuff.

Returns
bool True if the redirect was done. Handling of the request should be aborted. False if no redirect was done.

Definition at line 1005 of file MediaWiki.php.

References $title, Title\newFromText(), NS_MAIN, shouldDoHttpRedirect(), and wfDebugLog().

Referenced by main().

◆ outputResponsePayload()

MediaWiki::outputResponsePayload (   $content)
private

Print a response body to the current buffer (if there is one) or the server (otherwise)

This method should be called after doPreOutputCommit() and before doPostOutputShutdown()

Any accompanying Content-Type header is assumed to have already been set

Parameters
string$contentResponse content, usually from OutputPage::output()

Definition at line 1046 of file MediaWiki.php.

References $content, Profiler\instance(), and DeferredUpdates\pendingUpdatesCount().

Referenced by main().

◆ parseTitle()

MediaWiki::parseTitle ( )
private

Parse the request to get the Title object.

Exceptions
MalformedTitleExceptionIf a title has been provided by the user, but is invalid.
Returns
Title Title object to be $wgTitle

Definition at line 78 of file MediaWiki.php.

References $action, $title, MediaWiki\MediaWikiServices\getInstance(), SpecialPage\getTitleFor(), Title\makeTitle(), Title\newFromID(), Title\newFromLinkTarget(), Title\newFromTextThrow(), Title\newFromURL(), Title\newMainPage(), NS_FILE, and NS_MEDIA.

Referenced by getTitle(), and performRequest().

◆ performAction()

MediaWiki::performAction ( Article  $article,
Title  $requestTitle 
)
private

Perform one of the "standard" actions.

Parameters
Article$article
Title$requestTitleThe original title, before any redirects were applied

Definition at line 499 of file MediaWiki.php.

References $action, $t, $title, Action\factory(), getAction(), MediaWiki\MediaWikiServices\getInstance(), Profiler\instance(), PROTO_INTERNAL, and wfExpandUrl().

Referenced by performRequest().

◆ performRequest()

MediaWiki::performRequest ( )
private

Performs the request.

  • bad titles
  • read restriction
  • local interwiki redirects
  • redirect loop
  • special pages
  • normal pages
Exceptions
MWException|PermissionsError|BadTitleError|HttpError
Returns
void

Definition at line 194 of file MediaWiki.php.

References $title, $wgTitle, MediaWiki\MediaWikiServices\getInstance(), SpecialPage\getTitleFor(), initializeArticle(), parseTitle(), performAction(), and tryNormaliseRedirect().

Referenced by main().

◆ preOutputCommit()

static MediaWiki::preOutputCommit ( IContextSource  $context,
callable  $postCommitWork = null 
)
static

This function commits all DB and session changes as needed before the client can receive a response (in case DB commit fails) and thus also before the response can trigger a subsequent related request by the client.

If there is a significant amount of content to flush, it can be done in $postCommitWork

Parameters
IContextSource$context
callable | null$postCommitWork[default: null]
Since
1.27

Definition at line 668 of file MediaWiki.php.

References $config, $context, DeferredUpdates\doUpdates(), Config\get(), IContextSource\getConfig(), MediaWiki\MediaWikiServices\getInstance(), IContextSource\getOutput(), IContextSource\getRequest(), getUrlDomainDistance(), IContextSource\getUser(), MWExceptionHandler\logException(), wfDebug(), and wfDebugLog().

Referenced by doPreOutputCommit(), MediaWiki\Rest\EntryPoint\execute(), and ApiMain\executeActionWithErrorHandling().

◆ restInPeace()

MediaWiki::restInPeace ( )

◆ run()

◆ schedulePostSendJobs()

MediaWiki::schedulePostSendJobs ( )
private

If enabled, after everything specific to this request is done, occasionally run jobs.

Definition at line 601 of file MediaWiki.php.

References DeferredUpdates\addUpdate(), MediaWiki\Logger\LoggerFactory\getInstance(), getTitle(), triggerAsyncJobs(), triggerSyncJobs(), and wfReadOnly().

Referenced by main().

◆ setDBProfilingAgent()

MediaWiki::setDBProfilingAgent ( )
private

Add a comment to future SQL queries for easy SHOW PROCESSLIST interpretation.

Definition at line 590 of file MediaWiki.php.

References MediaWiki\MediaWikiServices\getInstance().

Referenced by run().

◆ shouldDoHttpRedirect()

MediaWiki::shouldDoHttpRedirect ( )
private

Check if an HTTP->HTTPS redirect should be done.

It may still be aborted by a hook, so this is not the final word.

Returns
bool

Definition at line 961 of file MediaWiki.php.

References PROTO_HTTPS, and wfExpandUrl().

Referenced by maybeDoHttpsRedirect().

◆ triggerAsyncJobs()

MediaWiki::triggerAsyncJobs (   $n,
LoggerInterface  $runJobsLogger 
)
private
Parameters
int$nNumber of jobs to try to run
LoggerInterface$runJobsLogger
Returns
bool Success

Definition at line 1220 of file MediaWiki.php.

References MediaWiki\MediaWikiServices\getInstance(), SpecialRunJobs\getQuerySignature(), JobQueueGroup\TYPE_DEFAULT, and wfParseUrl().

Referenced by schedulePostSendJobs().

◆ triggerSyncJobs()

MediaWiki::triggerSyncJobs (   $n)
private
Parameters
int$nNumber of jobs to try to run

Definition at line 1208 of file MediaWiki.php.

References MediaWiki\MediaWikiServices\getInstance(), and Profiler\instance().

Referenced by schedulePostSendJobs().

◆ tryNormaliseRedirect()

MediaWiki::tryNormaliseRedirect ( Title  $title)
private

Handle redirects for uncanonical title requests.

Handles:

  • Redirect loops.
  • No title in URL.
  • $wgUsePathInfo URLs.
  • URLs with a variant.
  • Other non-standard URLs (as long as they have no extra query parameters).

Behaviour:

  • Normalise title values: /wiki/Foo%20Bar -> /wiki/Foo_Bar
  • Normalise empty title: /wiki/ -> /wiki/Main /w/index.php?title= -> /wiki/Main
  • Don't redirect anything with query parameters other than 'title' or 'action=view'.
Parameters
Title$title
Returns
bool True if a redirect was set.
Exceptions
HttpError

Definition at line 354 of file MediaWiki.php.

References $title, MediaWiki\MediaWikiServices\getInstance(), SpecialPage\getTitleFor(), PROTO_CURRENT, and wfExpandUrl().

Referenced by performRequest().

Member Data Documentation

◆ $action

string MediaWiki::$action
private

Cache what action this request is.

Definition at line 45 of file MediaWiki.php.

Referenced by MediaWiki\Permissions\UserAuthority\authorizeRead(), MediaWiki\Permissions\UserAuthority\authorizeWrite(), MediaWiki\Permissions\PermissionManager\checkActionPermissions(), MediaWiki\Permissions\PermissionManager\checkCascadingSourcesRestrictions(), MediaWiki\Permissions\PermissionManager\checkPageRestrictions(), MediaWiki\Permissions\PermissionManager\checkPermissionHooks(), MediaWiki\Permissions\PermissionManager\checkQuickPermissions(), MediaWiki\Permissions\PermissionManager\checkReadPermissions(), MediaWiki\Permissions\PermissionManager\checkSiteConfigPermissions(), MediaWiki\Permissions\PermissionManager\checkSpecialsAndNSPermissions(), MediaWiki\Permissions\PermissionManager\checkUserBlock(), MediaWiki\Permissions\PermissionManager\checkUserConfigPermissions(), MediaWiki\Permissions\UserAuthority\definitelyCan(), MediaWiki\Auth\AuthManager\fillRequests(), getAction(), MediaWiki\Actions\ActionFactory\getActionName(), MediaWiki\Auth\AbstractPasswordPrimaryAuthenticationProvider\getAuthenticationRequests(), MediaWiki\Auth\TemporaryPasswordPrimaryAuthenticationProvider\getAuthenticationRequests(), MediaWiki\Auth\AuthManager\getAuthenticationRequests(), MediaWiki\Block\BlockActionInfo\getIdFromAction(), MediaWiki\Permissions\PermissionManager\getPermissionErrors(), MediaWiki\Permissions\PermissionManager\getPermissionErrorsInternal(), MediaWiki\Permissions\RestrictionStore\getRestrictionExpiry(), MediaWiki\Permissions\RestrictionStore\getRestrictions(), initializeArticle(), MediaWiki\Permissions\UserAuthority\internalCan(), MediaWiki\Permissions\RestrictionStore\isProtected(), MediaWiki\Permissions\RestrictionStore\isSemiProtected(), main(), MediaWiki\Permissions\PermissionManager\missingPermissionError(), MediaWiki\HookContainer\HookRunner\onAuthChangeFormFields(), MediaWiki\HookContainer\HookRunner\onGetActionName(), MediaWiki\HookContainer\HookRunner\onGetUserPermissionsErrors(), MediaWiki\HookContainer\HookRunner\onGetUserPermissionsErrorsExpensive(), MediaWiki\HookContainer\HookRunner\onPingLimiter(), MediaWiki\HookContainer\HookRunner\onTitleQuickPermissions(), MediaWiki\HookContainer\HookRunner\onUserCan(), parseTitle(), performAction(), MediaWiki\Permissions\UserAuthority\probablyCan(), MediaWiki\Permissions\PermissionManager\quickUserCan(), run(), MediaWiki\Permissions\PermissionManager\userCan(), MediaWiki\Permissions\PermissionManager\userHasAllRights(), MediaWiki\Permissions\PermissionManager\userHasAnyRight(), MediaWiki\Permissions\PermissionManager\userHasRight(), and MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences().

◆ $config

Config MediaWiki::$config
private

Definition at line 42 of file MediaWiki.php.

Referenced by MediaWiki\Auth\Throttler\__construct(), MediaWiki\Widget\CheckMatrixWidget\__construct(), MediaWiki\Widget\DateInputWidget\__construct(), MediaWiki\Widget\DateTimeInputWidget\__construct(), MediaWiki\Widget\NamespaceInputWidget\__construct(), MediaWiki\Widget\NamespacesMultiselectWidget\__construct(), MediaWiki\Widget\PendingTextInputWidget\__construct(), MediaWiki\Widget\SearchInputWidget\__construct(), MediaWiki\Widget\SpinnerWidget\__construct(), MediaWiki\Widget\TagMultiselectWidget\__construct(), MediaWiki\Widget\TitleInputWidget\__construct(), MediaWiki\Widget\TitlesMultiselectWidget\__construct(), MediaWiki\Widget\UserInputWidget\__construct(), MediaWiki\Widget\UsersMultiselectWidget\__construct(), MediaWiki\Config\ConfigRepository\add(), MediaWiki\Block\AbstractBlock\appliesToRight(), MediaWiki\Block\DatabaseBlock\appliesToRight(), MediaWiki\Block\AbstractBlock\appliesToUsertalk(), MediaWiki\Http\HttpRequestFactory\createGuzzleClient(), emitBufferedStatsdData(), MediaWiki\User\UserGroupManager\expandChangeableGroupConfig(), MediaWiki\Widget\CheckMatrixWidget\getConfig(), MediaWiki\Widget\DateInputWidget\getConfig(), MediaWiki\Widget\DateTimeInputWidget\getConfig(), MediaWiki\Widget\ExpiryInputWidget\getConfig(), MediaWiki\Widget\NamespaceInputWidget\getConfig(), MediaWiki\Widget\NamespacesMultiselectWidget\getConfig(), MediaWiki\Widget\SearchInputWidget\getConfig(), MediaWiki\Widget\TagMultiselectWidget\getConfig(), MediaWiki\Widget\TitleInputWidget\getConfig(), MediaWiki\Widget\TitlesMultiselectWidget\getConfig(), MediaWiki\Widget\UserInputWidget\getConfig(), MediaWiki\Widget\UsersMultiselectWidget\getConfig(), MediaWiki\Config\ConfigRepository\getDescriptionOf(), MediaWiki\Auth\UserDataAuthenticationRequest\getFieldInfo(), MediaWiki\Widget\DateInputWidget\getInputElement(), MediaWiki\Widget\NamespaceInputWidget\getNamespaceDropdownOptions(), MediaWiki\Config\ConfigRepository\getValueOf(), MediaWiki\Auth\TemporaryPasswordAuthenticationRequest\newRandom(), MediaWiki\HookContainer\HookRunner\onResourceLoaderGetConfigVars(), MediaWiki\HookContainer\HookRunner\onSkinPageReadyConfig(), MediaWiki\HookContainer\HookRunner\onUploadForm_getInitialPageText(), and preOutputCommit().

◆ $context

IContextSource MediaWiki::$context
private

Definition at line 40 of file MediaWiki.php.

Referenced by __construct(), MediaWiki\Shell\Command\__destruct(), MediaWiki\SpecialPage\SpecialPageFactory\capturePath(), MediaWiki\Permissions\PermissionManager\checkUserBlock(), MediaWiki\Logger\LogCapturingSpi\createLogger(), MediaWiki\Preferences\DefaultPreferencesFactory\datetimePreferences(), MediaWiki\Logger\LegacyLogger\destination(), MediaWiki\Revision\RevisionStore\ensureRevisionRowMatchesPage(), MediaWiki\SpecialPage\SpecialPageFactory\executePath(), MediaWiki\Logger\Monolog\LogstashFormatter\fixKeyConflicts(), MediaWiki\Logger\LegacyLogger\format(), MediaWiki\Logger\LegacyLogger\formatAsWfDebug(), MediaWiki\Logger\Monolog\LogstashFormatter\formatV0(), MediaWiki\Logger\Monolog\LogstashFormatter\formatV1(), MediaWiki\Preferences\DefaultPreferencesFactory\generateSkinOptions(), MediaWiki\Actions\ActionFactory\getAction(), MediaWiki\Actions\ActionFactory\getActionName(), MediaWiki\Rest\Handler\ActionModuleBasedHandler\getApiMain(), MediaWiki\Actions\ActionFactory\getArticle(), MediaWiki\Revision\ContributionsLookup\getContribsPager(), MediaWiki\Revision\ContributionsLookup\getContributionCount(), MediaWiki\Revision\ContributionsLookup\getContributions(), MediaWiki\Preferences\DefaultPreferencesFactory\getDateOptions(), MediaWiki\Preferences\DefaultPreferencesFactory\getForm(), MediaWiki\Preferences\DefaultPreferencesFactory\getFormDescriptor(), MediaWiki\User\UserOptionsManager\getOptionKinds(), MediaWiki\Block\AbstractBlock\getPermissionsError(), MediaWiki\Preferences\DefaultPreferencesFactory\getTimezoneOptions(), MediaWiki\Logger\LegacyLogger\interpolate(), MediaWiki\Preferences\DefaultPreferencesFactory\loadPreferenceValues(), MediaWiki\Logger\ConsoleLogger\log(), MediaWiki\Logger\LegacyLogger\log(), MediaWiki\Auth\Throttler\logRejection(), MediaWiki\EditPage\Constraint\EditConstraintFactory\newEditFilterMergedContentHookConstraint(), MediaWiki\Api\ApiHookRunner\onApiFeedContributions__feedItem(), MediaWiki\Api\ApiHookRunner\onApiFormatHighlight(), MediaWiki\HookContainer\HookRunner\onArticleFromTitle(), MediaWiki\HookContainer\HookRunner\onEditFilterMergedContent(), MediaWiki\HookContainer\HookRunner\onGetActionName(), MediaWiki\HookContainer\HookRunner\onGetDifferenceEngine(), MediaWiki\HookContainer\HookRunner\onGetExtendedMetadata(), MediaWiki\HookContainer\HookRunner\onGetSlotDiffRenderer(), MediaWiki\HookContainer\HookRunner\onHistoryPageToolLinks(), MediaWiki\HookContainer\HookRunner\onHTMLFileCache__useFileCache(), MediaWiki\HookContainer\HookRunner\onInfoAction(), MediaWiki\HookContainer\HookRunner\onLinkerGenerateRollbackLink(), MediaWiki\HookContainer\HookRunner\onPageHistoryBeforeList(), MediaWiki\HookContainer\HookRunner\onRequestContextCreateSkin(), ResourceLoader\HookRunner\onResourceLoaderForeignApiModules(), MediaWiki\HookContainer\HookRunner\onResourceLoaderJqueryMsgModuleMagicWords(), MediaWiki\HookContainer\HookRunner\onSkinPageReadyConfig(), MediaWiki\HookContainer\HookRunner\onSpecialContributions__formatRow__flags(), MediaWiki\HookContainer\HookRunner\onSpecialStatsAddExtra(), MediaWiki\HookContainer\HookRunner\onUndeletePageToolLinks(), MediaWiki\HookContainer\HookRunner\onUserGetLanguageObject(), MediaWiki\Revision\RenderedRevision\outputVariesOnRevisionMetaData(), preOutputCommit(), MediaWiki\Preferences\DefaultPreferencesFactory\profilePreferences(), MediaWiki\User\UserOptionsManager\resetOptions(), run(), MediaWiki\Logger\LegacyLogger\shouldEmit(), MediaWiki\Preferences\DefaultPreferencesFactory\skinPreferences(), MediaWiki\Preferences\DefaultPreferencesFactory\submitForm(), MediaWiki\Logger\Monolog\KafkaHandler\warning(), and MediaWiki\Preferences\DefaultPreferencesFactory\watchlistPreferences().

◆ $postSendStrategy

int MediaWiki::$postSendStrategy
private

Class DEFER_* constant; how non-blocking post-response tasks should run.

Definition at line 47 of file MediaWiki.php.

◆ DEFER_CLI_MODE

const MediaWiki::DEFER_CLI_MODE = 3
private

Do not try to make post-send updates async (e.g.

for CLI mode)

Definition at line 54 of file MediaWiki.php.

Referenced by __construct().

◆ DEFER_FASTCGI_FINISH_REQUEST

const MediaWiki::DEFER_FASTCGI_FINISH_REQUEST = 1
private

Call fastcgi_finish_request() to make post-send updates async.

Definition at line 50 of file MediaWiki.php.

Referenced by __construct().

◆ DEFER_SET_LENGTH_AND_FLUSH

const MediaWiki::DEFER_SET_LENGTH_AND_FLUSH = 2
private

Set Content-Length and call ob_end_flush()/flush() to make post-send updates async.

Definition at line 52 of file MediaWiki.php.

Referenced by __construct().


The documentation for this class was generated from the following file: