|
static | beforePageDisplay ( $out) |
| BeforePageDisplay hook handler. More...
|
|
static | getPreferences ( $user, &$preferences) |
| GetPreferences hook handler. More...
|
|
static | onCodeEditorGetPageLanguage (Title $title, &$lang) |
| Set the CodeEditor language for Gadget definition pages. More...
|
|
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. More...
|
|
static | onDeleteUnknownPreferences (&$where, IDatabase $db) |
| Prevent gadget preferences from being deleted. More...
|
|
static | onEditFilterMergedContent ( $context, $content, $status, $summary) |
| Valid gadget definition page after content is modified. More...
|
|
static | onPageContentInsertComplete (WikiPage $page) |
| After a new page is created in the Gadget definition namespace, invalidate the list of gadget ids. More...
|
|
static | onPageContentSaveComplete (WikiPage $wikiPage, $user, $content) |
| PageContentSaveComplete hook handler. More...
|
|
static | onwgQueryPages (&$queryPages) |
| Add the GadgetUsage special page to the list of QueryPages. More...
|
|
static | registerModules (&$resourceLoader) |
| ResourceLoaderRegisterModules hook handler. More...
|
|
static | userGetDefaultOptions (&$defaultOptions) |
| UserGetDefaultOptions hook handler. More...
|
|
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, 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 291 of file GadgetHooks.php.
References $ext, and $title.
◆ onDeleteUnknownPreferences()
static GadgetHooks::onDeleteUnknownPreferences |
( |
& |
$where, |
|
|
IDatabase |
$db |
|
) |
| |
|
static |
◆ onEditFilterMergedContent()
static GadgetHooks::onEditFilterMergedContent |
( |
|
$context, |
|
|
|
$content, |
|
|
|
$status, |
|
|
|
$summary |
|
) |
| |
|
static |
◆ 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 |
UserGetDefaultOptions hook handler.
- Parameters
-
array | &$defaultOptions | Array of default preference keys and values |
- Returns
- bool
Definition at line 46 of file GadgetHooks.php.
References as, and GadgetRepo\singleton().
The documentation for this class was generated from the following file: