Definition at line 25 of file GadgetHooks.php.
◆ beforePageDisplay()
static GadgetHooks::beforePageDisplay |
( |
| $out | ) |
|
|
static |
◆ getPreferences()
static GadgetHooks::getPreferences |
( |
| $user, |
|
|
& | $preferences ) |
|
static |
◆ makeLegacyWarning()
static GadgetHooks::makeLegacyWarning |
( |
| $id | ) |
|
|
staticprivate |
◆ onCodeEditorGetPageLanguage()
static GadgetHooks::onCodeEditorGetPageLanguage |
( |
Title | $title, |
|
|
& | $lang ) |
|
static |
Set the CodeEditor language for Gadget definition pages.
It already knows the language for Gadget: namespace pages.
- Parameters
-
- Returns
- bool
Definition at line 320 of file GadgetHooks.php.
References $lang.
◆ onContentHandlerDefaultModelFor()
static GadgetHooks::onContentHandlerDefaultModelFor |
( |
Title | $title, |
|
|
& | $model ) |
|
static |
Mark the Title as having a content model of javascript or css for pages in the Gadget namespace based on their file extension.
- Parameters
-
Title | $title | |
string | &$model | |
- Returns
- bool
Definition at line 295 of file GadgetHooks.php.
References $ext.
◆ onEditFilterMergedContent()
static GadgetHooks::onEditFilterMergedContent |
( |
| $context, |
|
|
| $content, |
|
|
| $status, |
|
|
| $summary ) |
|
static |
Valid gadget definition page after content is modified.
- Parameters
-
- Exceptions
-
- Returns
- bool
Definition at line 249 of file GadgetHooks.php.
References $context.
◆ onPageContentInsertComplete()
static GadgetHooks::onPageContentInsertComplete |
( |
WikiPage | $page | ) |
|
|
static |
◆ onPageContentSaveComplete()
static GadgetHooks::onPageContentSaveComplete |
( |
| $article, |
|
|
| $user, |
|
|
| $content ) |
|
static |
◆ onwgQueryPages()
static GadgetHooks::onwgQueryPages |
( |
& | $queryPages | ) |
|
|
static |
Add the GadgetUsage special page to the list of QueryPages.
- Parameters
-
- Returns
- bool
Definition at line 334 of file GadgetHooks.php.
◆ registerModules()
static GadgetHooks::registerModules |
( |
& | $resourceLoader | ) |
|
|
static |
◆ userGetDefaultOptions()
static GadgetHooks::userGetDefaultOptions |
( |
& | $defaultOptions | ) |
|
|
static |
UserGetDefaultOptions hook handler.
- Parameters
-
array | &$defaultOptions | Array of default preference keys and values |
- Returns
- bool
Definition at line 51 of file GadgetHooks.php.
References GadgetRepo\singleton().
The documentation for this class was generated from the following file: