|
static | beforePageDisplay ( $out) |
| BeforePageDisplay hook handler.
|
|
static | getPreferences ( $user, &$preferences) |
| GetPreferences hook handler.
|
|
static | onCodeEditorGetPageLanguage (Title $title, &$lang) |
| Set the CodeEditor language for Gadget definition pages.
|
|
static | onContentHandlerDefaultModelFor (Title $title, &$model) |
| Mark the Title as having a content model of javascript or css for pages in the Gadget namespace based on their file extension.
|
|
static | onDeleteUnknownPreferences (&$where, IDatabase $db) |
| Prevent gadget preferences from being deleted.
|
|
static | onEditFilterMergedContent ( $context, $content, $status, $summary) |
| Valid gadget definition page after content is modified.
|
|
static | onPageContentInsertComplete (WikiPage $page) |
| After a new page is created in the Gadget definition namespace, invalidate the list of gadget ids.
|
|
static | onPageContentSaveComplete (WikiPage $wikiPage, $user, $content) |
| PageContentSaveComplete hook handler.
|
|
static | onwgQueryPages (&$queryPages) |
| Add the GadgetUsage special page to the list of QueryPages.
|
|
static | registerModules (&$resourceLoader) |
| ResourceLoaderRegisterModules hook handler.
|
|
static | userGetDefaultOptions (&$defaultOptions) |
| UserGetDefaultOptions hook handler.
|
|
Definition at line 26 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 316 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 291 of file GadgetHooks.php.
References $ext, and and().
◆ onDeleteUnknownPreferences()
static GadgetHooks::onDeleteUnknownPreferences |
( |
& | $where, |
|
|
IDatabase | $db ) |
|
static |
◆ onEditFilterMergedContent()
static GadgetHooks::onEditFilterMergedContent |
( |
| $context, |
|
|
| $content, |
|
|
| $status, |
|
|
| $summary ) |
|
static |
Valid gadget definition page after content is modified.
- Parameters
-
- Exceptions
-
- Returns
- bool
Definition at line 248 of file GadgetHooks.php.
References $content, and $context.
◆ onPageContentInsertComplete()
static GadgetHooks::onPageContentInsertComplete |
( |
WikiPage | $page | ) |
|
|
static |
◆ onPageContentSaveComplete()
static GadgetHooks::onPageContentSaveComplete |
( |
WikiPage | $wikiPage, |
|
|
| $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 330 of file GadgetHooks.php.
◆ registerModules()
static GadgetHooks::registerModules |
( |
& | $resourceLoader | ) |
|
|
static |
◆ userGetDefaultOptions()
static GadgetHooks::userGetDefaultOptions |
( |
& | $defaultOptions | ) |
|
|
static |
The documentation for this class was generated from the following file: