MediaWiki
1.33.0
|
Static Public Member Functions | |
static | onAPIQuerySiteInfoGeneralInfo (ApiQuerySiteInfo $api, array &$data) |
Hook: APIQuerySiteInfoGeneralInfo. More... | |
static | onContentHandlerDefaultModelFor (Title $title, &$model) |
Convert the content model of a message that is actually JSON to JSON. More... | |
static | onLinksUpdate (LinksUpdate $linksUpdate) |
Callback for LinksUpdate hook Post-output processing of references property, for proper db storage Deferred to avoid performance overhead when outputting the page. More... | |
static | onLinksUpdateComplete (LinksUpdate $linksUpdate) |
Callback for LinksUpdateComplete hook If $wgCiteCacheRawReferencesOnParse is set to false, purges the cache when references are modified. More... | |
static | onResourceLoaderGetConfigVars (array &$vars) |
Adds extra variables to the global config. More... | |
static | onResourceLoaderRegisterModules (ResourceLoader $resourceLoader) |
Conditionally register resource loader modules that depends on the VisualEditor MediaWiki extension. More... | |
static | onResourceLoaderTestModules (array &$testModules, ResourceLoader $resourceLoader) |
Conditionally register the unit testing module for the ext.cite.visualEditor module only if that module is loaded. More... | |
Definition at line 9 of file CiteHooks.php.
|
static |
Hook: APIQuerySiteInfoGeneralInfo.
Expose configs via action=query&meta=siteinfo
ApiQuerySiteInfo | $api | |
array | &$data |
Definition at line 330 of file CiteHooks.php.
References $data.
|
static |
Convert the content model of a message that is actually JSON to JSON.
This only affects validation and UI when saving and editing, not loading the content.
Title | $title | |
string | &$model |
Definition at line 19 of file CiteHooks.php.
References $title, CONTENT_MODEL_JSON, and NS_MEDIAWIKI.
|
static |
Callback for LinksUpdate hook Post-output processing of references property, for proper db storage Deferred to avoid performance overhead when outputting the page.
LinksUpdate | $linksUpdate |
Definition at line 252 of file CiteHooks.php.
References $cache, $linksUpdate, FormatJson\ALL_OK, as, and FormatJson\encode().
|
static |
Callback for LinksUpdateComplete hook If $wgCiteCacheRawReferencesOnParse is set to false, purges the cache when references are modified.
LinksUpdate | $linksUpdate |
Definition at line 288 of file CiteHooks.php.
References $cache, $linksUpdate, and WANObjectCache\MAX_COMMIT_DELAY.
|
static |
Adds extra variables to the global config.
array | &$vars |
Definition at line 316 of file CiteHooks.php.
References $vars.
|
static |
Conditionally register resource loader modules that depends on the VisualEditor MediaWiki extension.
ResourceLoader | $resourceLoader |
Definition at line 73 of file CiteHooks.php.
References $resourceLoader, and ExtensionRegistry\getInstance().
|
static |
Conditionally register the unit testing module for the ext.cite.visualEditor module only if that module is loaded.
array | &$testModules | The array of registered test modules |
ResourceLoader | $resourceLoader |
Definition at line 38 of file CiteHooks.php.
References $resourceLoader.