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