MediaWiki REL1_30
GadgetDefinitionSecondaryDataUpdate.php
Go to the documentation of this file.
1<?php
24
25 private $id;
26
27 public function __construct( $id ) {
28 $this->id = $id;
29 }
30
31 public function doUpdate() {
32 $repo = GadgetRepo::singleton();
33 if ( $repo instanceof GadgetDefinitionNamespaceRepo ) {
34 $repo->purgeGadgetEntry( $this->id );
35 }
36 }
37}
Abstract base class for update jobs that do something with some secondary data extracted from article...
GadgetRepo implementation where each gadget has a page in the Gadget definition namespace,...
static singleton()
Get the configured default GadgetRepo.