74 }
catch ( InvalidArgumentException
$e ) {
77 $list[$gadget->getCategory()][$gadget->getName()] = $gadget;
89 if ( self::$instance ===
null ) {
102 self::$instance = $repo;
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
static GadgetRepo null $instance
getGadget( $id)
Get the Gadget object for a given gadget id.
getGadgetIds()
Get the ids of the gadgets provided by this repository.
handlePageUpdate(LinkTarget $target)
Given that the provided page was updated, invalidate caches if necessary.
static singleton()
Get the configured default GadgetRepo.
handlePageDeletion(LinkTarget $target)
Given that the provided page was updated, invalidate caches if necessary.
handlePageCreation(LinkTarget $target)
Given that the provided page was created, invalidate caches if necessary.
getStructuredList()
Get a list of gadgets sorted by category.
static setSingleton( $repo=null)
Should only be used by unit tests.
returning false will NOT prevent logging $e