MediaWiki
1.30.0
|
Public Member Functions | |
getGadget ( $id) | |
Get the Gadget object for a given gadget id. More... | |
getGadgetIds () | |
Get the ids of the gadgets provided by this repository. More... | |
getStructuredList () | |
Get a list of gadgets sorted by category. More... | |
Static Public Member Functions | |
static | setSingleton ( $repo=null) |
Should only be used by unit tests. More... | |
static | singleton () |
Get the configured default GadgetRepo. More... | |
Static Private Attributes | |
static GadgetRepo null | $instance |
Definition at line 3 of file GadgetRepo.php.
|
abstract |
Get the Gadget object for a given gadget id.
string | $id |
InvalidArgumentException |
Reimplemented in GadgetDefinitionNamespaceRepo, and MediaWikiGadgetsDefinitionRepo.
Referenced by getStructuredList().
|
abstract |
Get the ids of the gadgets provided by this repository.
It's possible this could be out of sync with what getGadget() will return due to caching
Reimplemented in GadgetDefinitionNamespaceRepo, and MediaWikiGadgetsDefinitionRepo.
Referenced by getStructuredList().
GadgetRepo::getStructuredList | ( | ) |
Get a list of gadgets sorted by category.
Definition at line 34 of file GadgetRepo.php.
References $e, as, getGadget(), and getGadgetIds().
|
static |
Should only be used by unit tests.
GadgetRepo | null | $repo |
Definition at line 66 of file GadgetRepo.php.
Referenced by GadgetsTest\tearDown(), and GadgetsTest\testPreferences().
|
static |
Get the configured default GadgetRepo.
Definition at line 53 of file GadgetRepo.php.
References $instance, and global.
Referenced by GadgetHooks\beforePageDisplay(), GadgetDefinitionSecondaryDataUpdate\doUpdate(), GadgetDefinitionDeletionUpdate\doUpdate(), GadgetResourceLoaderModule\getGadget(), ApiQueryGadgetCategories\getList(), ApiQueryGadgets\getList(), GadgetHooks\getPreferences(), GadgetHooks\onPageContentInsertComplete(), GadgetHooks\onPageContentSaveComplete(), SpecialGadgetUsage\outputResults(), GadgetHooks\registerModules(), SpecialGadgets\showExportForm(), SpecialGadgets\showMainForm(), and GadgetHooks\userGetDefaultOptions().
|
staticprivate |
Definition at line 8 of file GadgetRepo.php.
Referenced by singleton().