MediaWiki
REL1_34
GadgetDefinitionDeletionUpdate.php
Go to the documentation of this file.
1
<?php
23
use
MediaWiki\Linker\LinkTarget
;
24
29
class
GadgetDefinitionDeletionUpdate
extends
DataUpdate
{
34
private
$target
;
35
36
public
function
__construct
(
LinkTarget
$target
) {
37
$this->target =
$target
;
38
}
39
40
public
function
doUpdate
() {
41
GadgetRepo::singleton
()->handlePageDeletion( $this->target );
42
}
43
}
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:29
GadgetDefinitionDeletionUpdate\$target
LinkTarget $target
Page that was deleted.
Definition
GadgetDefinitionDeletionUpdate.php:34
GadgetDefinitionDeletionUpdate\doUpdate
doUpdate()
Perform the actual work.
Definition
GadgetDefinitionDeletionUpdate.php:40
GadgetDefinitionDeletionUpdate\__construct
__construct(LinkTarget $target)
Definition
GadgetDefinitionDeletionUpdate.php:36
GadgetRepo\singleton
static singleton()
Get the configured default GadgetRepo.
Definition
GadgetRepo.php:88
MediaWiki\Linker\LinkTarget
Definition
LinkTarget.php:26
extensions
Gadgets
includes
content
GadgetDefinitionDeletionUpdate.php
Generated on Mon Nov 25 2024 16:04:36 for MediaWiki by
1.10.0