MediaWiki  1.34.0
GadgetDefinitionDeletionUpdate.php
Go to the documentation of this file.
1 <?php
24 
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 }
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
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
GadgetRepo\singleton
static singleton()
Get the configured default GadgetRepo.
Definition: GadgetRepo.php:88
MediaWiki\Linker\LinkTarget
Definition: LinkTarget.php:26