MediaWiki REL1_37
HTMLCacheUpdate.php
Go to the documentation of this file.
1<?php
22
31 private $pageTo;
33 private $table;
34
41 public function __construct(
42 PageReference $pageTo, $table, $causeAction = 'unknown', $causeAgent = 'unknown'
43 ) {
44 $this->pageTo = $pageTo;
45 $this->table = $table;
46 $this->causeAction = $causeAction;
47 $this->causeAgent = $causeAgent;
48 }
49
50 public function doUpdate() {
52 $this->pageTo,
53 $this->table,
54 [ 'causeAction' => $this->getCauseAction(), 'causeAgent' => $this->getCauseAgent() ]
55 );
56 JobQueueGroup::singleton()->lazyPush( $job );
57 }
58}
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(PageReference $page, $table, $params=[])
HTML file cache invalidation all the pages linking to a given title.
PageReference $pageTo
__construct(PageReference $pageTo, $table, $causeAction='unknown', $causeAgent='unknown')
doUpdate()
Perform the actual work.
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
if(count( $args)< 1) $job