Definition at line 9 of file WikiEditor.hooks.php.
◆ doEventLogging()
static WikiEditorHooks::doEventLogging |
( |
|
$action, |
|
|
|
$article, |
|
|
|
$data = [] |
|
) |
| |
|
static |
◆ editPageAttemptSave()
static WikiEditorHooks::editPageAttemptSave |
( |
EditPage |
$editPage | ) |
|
|
static |
◆ editPageAttemptSaveAfter()
static WikiEditorHooks::editPageAttemptSaveAfter |
( |
EditPage |
$editPage, |
|
|
Status |
$status |
|
) |
| |
|
static |
◆ EditPageBeforeEditToolbar()
static WikiEditorHooks::EditPageBeforeEditToolbar |
( |
& |
$toolbar | ) |
|
|
static |
◆ editPageShowEditFormFields()
static WikiEditorHooks::editPageShowEditFormFields |
( |
EditPage |
$editPage, |
|
|
OutputPage |
$outputPage |
|
) |
| |
|
static |
◆ editPageShowEditFormInitial()
static WikiEditorHooks::editPageShowEditFormInitial |
( |
EditPage |
$editPage, |
|
|
OutputPage |
$outputPage |
|
) |
| |
|
static |
◆ getEditingStatsId()
static WikiEditorHooks::getEditingStatsId |
( |
| ) |
|
|
staticprivate |
◆ getMagicWords()
static WikiEditorHooks::getMagicWords |
( |
& |
$vars | ) |
|
|
staticprivate |
◆ getPreferences()
static WikiEditorHooks::getPreferences |
( |
|
$user, |
|
|
& |
$defaultPreferences |
|
) |
| |
|
static |
GetPreferences hook.
Adds WikiEditor-related items to the preferences
- Parameters
-
User | $user | current user |
array | &$defaultPreferences | list of default user preference controls |
- Returns
- bool
Definition at line 279 of file WikiEditor.hooks.php.
References $name, $options, as, and global.
◆ isEnabled()
static WikiEditorHooks::isEnabled |
( |
|
$name | ) |
|
|
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
- Parameters
-
string | $name | Name of the feature, should be a key of $features |
- Returns
- bool
Definition at line 87 of file WikiEditor.hooks.php.
References $name, $value, $wgUser, as, and global.
◆ makeGlobalVariablesScript()
static WikiEditorHooks::makeGlobalVariablesScript |
( |
& |
$vars | ) |
|
|
static |
MakeGlobalVariablesScript hook.
Adds enabled/disabled switches for WikiEditor modules
- Parameters
-
- Returns
- bool
Definition at line 335 of file WikiEditor.hooks.php.
References $name, $vars, and as.
◆ resourceLoaderGetConfigVars()
static WikiEditorHooks::resourceLoaderGetConfigVars |
( |
& |
$vars | ) |
|
|
static |
◆ resourceLoaderTestModules()
static WikiEditorHooks::resourceLoaderTestModules |
( |
& |
$testModules, |
|
|
& |
$resourceLoader |
|
) |
| |
|
static |
ResourceLoaderTestModules hook.
Registers JavaScript test modules
- Parameters
-
$testModules | array of javascript testing modules. 'qunit' is fed using tests/qunit/QUnitTestResources.php. |
$resourceLoader | object |
- Returns
- bool
Definition at line 318 of file WikiEditor.hooks.php.
◆ $features
WikiEditorHooks::$features |
|
staticprotected |
◆ $statsId
WikiEditorHooks::$statsId = false |
|
staticprivate |
The documentation for this class was generated from the following file: