MediaWiki REL1_34
HTMLCacheUpdate.php
Go to the documentation of this file.
1<?php
31 private $title;
33 private $table;
34
41 function __construct(
42 Title $titleTo, $table, $causeAction = 'unknown', $causeAgent = 'unknown'
43 ) {
44 $this->title = $titleTo;
45 $this->table = $table;
46 $this->causeAction = $causeAction;
47 $this->causeAgent = $causeAgent;
48 }
49
50 public function doUpdate() {
52 $this->title,
53 $this->table,
54 [ 'causeAction' => $this->getCauseAction(), 'causeAgent' => $this->getCauseAgent() ]
55 );
56
57 JobQueueGroup::singleton()->lazyPush( $job );
58 }
59}
Abstract base class for update jobs that do something with some secondary data extracted from article...
string $causeAction
Short update cause action description.
string $causeAgent
Short update cause user description.
static newForBacklinks(Title $title, $table, $params=[])
Class to invalidate the HTML/file cache of all the pages linking to a given title.
doUpdate()
Perform the actual work.
__construct(Title $titleTo, $table, $causeAction='unknown', $causeAgent='unknown')
Represents a title within MediaWiki.
Definition Title.php:42
if(count( $args)< 1) $job