MediaWiki REL1_30
GadgetDefinitionDeletionUpdate.php
Go to the documentation of this file.
1<?php
32 private $id;
33
34 public function __construct( $id ) {
35 $this->id = $id;
36 }
37
38 public function doUpdate() {
39 $repo = GadgetRepo::singleton();
40 if ( $repo instanceof GadgetDefinitionNamespaceRepo ) {
41 $repo->purgeGadgetIdsList();
42 $repo->purgeGadgetEntry( $this->id );
43 }
44 }
45}
Abstract base class for update jobs that do something with some secondary data extracted from article...
DataUpdate to run whenever a page in the Gadget definition is deleted.
GadgetRepo implementation where each gadget has a page in the Gadget definition namespace,...
static singleton()
Get the configured default GadgetRepo.