mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-15 03:23:51 +00:00
e858bda308
GadgetRepo is an abstract class based off of the implementation in the RL2 branch. It is a singleton that provides basic methods to construct and interact with Gadget objects. The MediaWikiGadgetsDefinition class is an implementation of GadgetsRepo that parses the "MediaWiki:Gadgets-definition" page for gadget definitions. Tests were left in place to demonstrate that no functional changes have been made aside from relocation of code. Some tests should be moved to separate files in the future. Bug: T106176 Change-Id: I3e802889f6f495783f4dbac65c2a8cefa824a778
61 lines
1.4 KiB
JSON
Executable file
61 lines
1.4 KiB
JSON
Executable file
{
|
|
"name": "Gadgets",
|
|
"author": [
|
|
"Daniel Kinzler",
|
|
"Max Semenik"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Gadgets",
|
|
"descriptionmsg": "gadgets-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"type": "other",
|
|
"SpecialPages": {
|
|
"Gadgets": "SpecialGadgets"
|
|
},
|
|
"APIListModules": {
|
|
"gadgetcategories": "ApiQueryGadgetCategories",
|
|
"gadgets": "ApiQueryGadgets"
|
|
},
|
|
"MessagesDirs": {
|
|
"Gadgets": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"GadgetsAlias": "Gadgets.alias.php"
|
|
},
|
|
"AutoloadClasses": {
|
|
"ApiQueryGadgetCategories": "api/ApiQueryGadgetCategories.php",
|
|
"ApiQueryGadgets": "api/ApiQueryGadgets.php",
|
|
"Gadget": "Gadgets_body.php",
|
|
"GadgetHooks": "GadgetHooks.php",
|
|
"GadgetResourceLoaderModule": "Gadgets_body.php",
|
|
"SpecialGadgets": "SpecialGadgets.php",
|
|
"GadgetRepo": "includes/GadgetRepo.php",
|
|
"MediaWikiGadgetsDefinitionRepo": "includes/MediaWikiGadgetsDefinitionRepo.php"
|
|
},
|
|
"Hooks": {
|
|
"ArticleSaveComplete": [
|
|
"GadgetHooks::articleSaveComplete"
|
|
],
|
|
"BeforePageDisplay": [
|
|
"GadgetHooks::beforePageDisplay"
|
|
],
|
|
"UserGetDefaultOptions": [
|
|
"GadgetHooks::userGetDefaultOptions"
|
|
],
|
|
"GetPreferences": [
|
|
"GadgetHooks::getPreferences"
|
|
],
|
|
"ResourceLoaderRegisterModules": [
|
|
"GadgetHooks::registerModules"
|
|
],
|
|
"UnitTestsList": [
|
|
"GadgetHooks::onUnitTestsList"
|
|
]
|
|
},
|
|
"ConfigRegistry": {
|
|
"gadgets": "GlobalVarConfig::newInstance"
|
|
},
|
|
"manifest_version": 1
|
|
}
|