MediaWiki
REL1_30
GadgetDefinitionSecondaryDataUpdate.php
Go to the documentation of this file.
1
<?php
23
class
GadgetDefinitionSecondaryDataUpdate
extends
DataUpdate
{
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
}
DataUpdate
Abstract base class for update jobs that do something with some secondary data extracted from article...
Definition
DataUpdate.php:28
GadgetDefinitionNamespaceRepo
GadgetRepo implementation where each gadget has a page in the Gadget definition namespace,...
Definition
GadgetDefinitionNamespaceRepo.php:10
GadgetDefinitionSecondaryDataUpdate
Definition
GadgetDefinitionSecondaryDataUpdate.php:23
GadgetDefinitionSecondaryDataUpdate\__construct
__construct( $id)
Definition
GadgetDefinitionSecondaryDataUpdate.php:27
GadgetDefinitionSecondaryDataUpdate\doUpdate
doUpdate()
Perform the actual work.
Definition
GadgetDefinitionSecondaryDataUpdate.php:31
GadgetDefinitionSecondaryDataUpdate\$id
$id
Definition
GadgetDefinitionSecondaryDataUpdate.php:25
GadgetRepo\singleton
static singleton()
Get the configured default GadgetRepo.
Definition
GadgetRepo.php:53
extensions
Gadgets
includes
content
GadgetDefinitionSecondaryDataUpdate.php
Generated on Mon Nov 25 2024 15:41:57 for MediaWiki by
1.10.0