MediaWiki
1.29.1
|
Static Public Member Functions | |
static | doEventLogging ( $action, $article, $data=[]) |
Log stuff to EventLogging's Schema:Edit - see https://meta.wikimedia.org/wiki/Schema:Edit If you don't have EventLogging installed, does nothing. More... | |
static | editPageAttemptSave (EditPage $editPage) |
This is attached to the MediaWiki 'EditPage::attemptSave' hook. More... | |
static | editPageAttemptSaveAfter (EditPage $editPage, Status $status) |
This is attached to the MediaWiki 'EditPage::attemptSave:after' hook. More... | |
static | EditPageBeforeEditToolbar (&$toolbar) |
EditPageBeforeEditToolbar hook. More... | |
static | editPageShowEditFormFields ( $editPage, $outputPage) |
EditPage::showEditForm:fields hook. More... | |
static | editPageShowEditFormInitial ( $editPage, $outputPage) |
EditPage::showEditForm:initial hook. More... | |
static | getPreferences ( $user, &$defaultPreferences) |
GetPreferences hook. More... | |
static | isEnabled ( $name) |
Checks if a certain option is enabled. More... | |
static | makeGlobalVariablesScript (&$vars) |
MakeGlobalVariablesScript hook. More... | |
static | resourceLoaderGetConfigVars (&$vars) |
static | resourceLoaderTestModules (&$testModules, &$resourceLoader) |
ResourceLoaderTestModules hook. More... | |
Static Protected Attributes | |
static | $features |
Static Private Member Functions | |
static | getEditingStatsId () |
Gets a 32 character alphanumeric random string to be used for stats. More... | |
static | getMagicWords (&$vars) |
Expose useful magic words which are used by the wikieditor toolbar. More... | |
Static Private Attributes | |
static | $statsId = false |
Definition at line 9 of file WikiEditor.hooks.php.
|
static |
Log stuff to EventLogging's Schema:Edit - see https://meta.wikimedia.org/wiki/Schema:Edit If you don't have EventLogging installed, does nothing.
string | $action | |
Article | $article | Which article (with full context, page, title, etc.) |
array | $data | Data to log for this action |
Definition at line 136 of file WikiEditor.hooks.php.
References $article, $page, $title, $user, $wgVersion, and global.
|
static |
This is attached to the MediaWiki 'EditPage::attemptSave' hook.
Definition at line 404 of file WikiEditor.hooks.php.
References $article, $request, and EditPage::getArticle().
This is attached to the MediaWiki 'EditPage::attemptSave:after' hook.
Definition at line 425 of file WikiEditor.hooks.php.
References $article, $request, $status, EditPage::AS_ARTICLE_WAS_DELETED, EditPage::AS_CONFLICT_DETECTED, and EditPage::getArticle().
|
static |
EditPageBeforeEditToolbar hook.
Disable the old toolbar if the new one is enabled
$toolbar | html |
Definition at line 272 of file WikiEditor.hooks.php.
References Html::rawElement().
|
static |
EditPage::showEditForm:fields hook.
Adds the event fields to the edit form
EditPage | $editPage | the current EditPage object. |
OutputPage | $outputPage | object. |
Definition at line 239 of file WikiEditor.hooks.php.
References $req, CONTENT_MODEL_WIKITEXT, and Xml::element().
|
static |
EditPage::showEditForm:initial hook.
Adds the modules to the edit form
EditPage | $editPage | the current EditPage object. |
OutputPage | $outputPage | object. |
Definition at line 181 of file WikiEditor.hooks.php.
References $article, $name, $request, as, and CONTENT_MODEL_WIKITEXT.
|
staticprivate |
Gets a 32 character alphanumeric random string to be used for stats.
Definition at line 390 of file WikiEditor.hooks.php.
References MWCryptRand::generateHex().
|
staticprivate |
Expose useful magic words which are used by the wikieditor toolbar.
$vars | array |
Definition at line 368 of file WikiEditor.hooks.php.
References $magicWords, $name, $vars, as, and MagicWord::get().
Referenced by resourceLoaderGetConfigVars().
|
static |
|
static |
Checks if a certain option is enabled.
This method is public to allow other extensions that use WikiEditor to use the same configuration as WikiEditor itself
$name | string Name of the feature, should be a key of $features |
Definition at line 102 of file WikiEditor.hooks.php.
|
static |
MakeGlobalVariablesScript hook.
Adds enabled/disabled switches for WikiEditor modules
$vars | array |
Definition at line 352 of file WikiEditor.hooks.php.
|
static |
$vars | array |
Definition at line 316 of file WikiEditor.hooks.php.
References $vars, getMagicWords(), and wfMessage().
|
static |
ResourceLoaderTestModules hook.
Registers JavaScript test modules
$testModules | array of javascript testing modules. 'qunit' is fed using tests/qunit/QUnitTestResources.php. |
$resourceLoader | object |
Definition at line 335 of file WikiEditor.hooks.php.
|
staticprotected |
Definition at line 16 of file WikiEditor.hooks.php.
|
staticprivate |
Definition at line 12 of file WikiEditor.hooks.php.