MediaWiki REL1_35
HTMLCacheUpdate.php
Go to the documentation of this file.
1<?php
29 private $title;
31 private $table;
32
39 public function __construct(
40 Title $titleTo, $table, $causeAction = 'unknown', $causeAgent = 'unknown'
41 ) {
42 $this->title = $titleTo;
43 $this->table = $table;
44 $this->causeAction = $causeAction;
45 $this->causeAgent = $causeAgent;
46 }
47
48 public function doUpdate() {
50 $this->title,
51 $this->table,
52 [ 'causeAction' => $this->getCauseAction(), 'causeAgent' => $this->getCauseAgent() ]
53 );
54 JobQueueGroup::singleton()->lazyPush( $job );
55 }
56}
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=[])
HTML file cache invalidation 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