|
static | beforePageDisplay (OutputPage $out) |
| BeforePageDisplay hook handler.
|
|
static | getPreferences (User $user, array &$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 (array &$where, IDatabase $db) |
| Prevent gadget preferences from being deleted.
|
|
static | onEditFilterMergedContent (IContextSource $context, Content $content, Status $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 (array &$queryPages) |
| Add the GadgetUsage special page to the list of QueryPages.
|
|
static | registerModules (ResourceLoader &$resourceLoader) |
| ResourceLoaderRegisterModules hook handler.
|
|
static | userGetDefaultOptions (array &$defaultOptions) |
| UserGetDefaultOptions hook handler.
|
|
Definition at line 26 of file GadgetHooks.php.
◆ beforePageDisplay()
static GadgetHooks::beforePageDisplay |
( |
OutputPage | $out | ) |
|
|
static |
◆ getPreferences()
static GadgetHooks::getPreferences |
( |
User | $user, |
|
|
array & | $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 306 of file GadgetHooks.php.
References $lang, and $title.
◆ 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 281 of file GadgetHooks.php.
References $ext, and $title.
◆ onDeleteUnknownPreferences()
static GadgetHooks::onDeleteUnknownPreferences |
( |
array & | $where, |
|
|
IDatabase | $db ) |
|
static |
◆ onEditFilterMergedContent()
◆ onPageContentInsertComplete()
static GadgetHooks::onPageContentInsertComplete |
( |
WikiPage | $page | ) |
|
|
static |
◆ onPageContentSaveComplete()
static GadgetHooks::onPageContentSaveComplete |
( |
WikiPage | $wikiPage, |
|
|
| $user, |
|
|
| $content ) |
|
static |
◆ onwgQueryPages()
static GadgetHooks::onwgQueryPages |
( |
array & | $queryPages | ) |
|
|
static |
Add the GadgetUsage special page to the list of QueryPages.
- Parameters
-
Definition at line 319 of file GadgetHooks.php.
◆ registerModules()
static GadgetHooks::registerModules |
( |
ResourceLoader & | $resourceLoader | ) |
|
|
static |
◆ userGetDefaultOptions()
static GadgetHooks::userGetDefaultOptions |
( |
array & | $defaultOptions | ) |
|
|
static |
The documentation for this class was generated from the following file: