MediaWiki REL1_39
HTMLCacheUpdate.php
Go to the documentation of this file.
1<?php
23
33 private $pageTo;
35 private $table;
36
43 public function __construct(
44 PageReference $pageTo, $table, $causeAction = 'unknown', $causeAgent = 'unknown'
45 ) {
46 wfDeprecated( __CLASS__, '1.34' );
47 $this->pageTo = $pageTo;
48 $this->table = $table;
49 $this->causeAction = $causeAction;
50 $this->causeAgent = $causeAgent;
51 }
52
53 public function doUpdate() {
54 $job = HTMLCacheUpdateJob::newForBacklinks(
55 $this->pageTo,
56 $this->table,
57 [ 'causeAction' => $this->getCauseAction(), 'causeAgent' => $this->getCauseAgent() ]
58 );
59 MediaWikiServices::getInstance()->getJobQueueGroup()->lazyPush( $job );
60 }
61}
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
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.
HTML file cache invalidation all the pages linking to a given title.
__construct(PageReference $pageTo, $table, $causeAction='unknown', $causeAgent='unknown')
doUpdate()
Perform the actual work.
Service locator for MediaWiki core services.
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
if(count( $args)< 1) $job