MediaWiki REL1_37
HtmlFileCacheUpdate Class Reference

HTMLFileCache purge update for a set of titles. More...

Inheritance diagram for HtmlFileCacheUpdate:
Collaboration diagram for HtmlFileCacheUpdate:

Public Member Functions

 doUpdate ()
 Perform the actual work.
 
 merge (MergeableUpdate $update)
 Merge this enqueued update with a new MergeableUpdate of the same qualified class name.
 

Static Public Member Functions

static newFromPages ( $pages)
 
static newFromTitles ( $pages)
 

Private Member Functions

 __construct (array $pages)
 

Private Attributes

PageIdentity[] $pages
 List of pages.
 

Detailed Description

HTMLFileCache purge update for a set of titles.

Since
1.35

Definition at line 31 of file HtmlFileCacheUpdate.php.

Constructor & Destructor Documentation

◆ __construct()

HtmlFileCacheUpdate::__construct ( array  $pages)
private
Parameters
PageIdentity[]$pagesList of pages

Definition at line 38 of file HtmlFileCacheUpdate.php.

References $pages.

Member Function Documentation

◆ doUpdate()

HtmlFileCacheUpdate::doUpdate ( )

Perform the actual work.

Implements DeferrableUpdate.

Definition at line 77 of file HtmlFileCacheUpdate.php.

References HTMLFileCache\clearFileCache().

◆ merge()

HtmlFileCacheUpdate::merge ( MergeableUpdate  $update)

Merge this enqueued update with a new MergeableUpdate of the same qualified class name.

Parameters
MergeableUpdate$updateThe new update (having the same class)

Implements MergeableUpdate.

Definition at line 42 of file HtmlFileCacheUpdate.php.

◆ newFromPages()

static HtmlFileCacheUpdate::newFromPages (   $pages)
static
Since
1.37
Parameters
iterable<PageIdentity>$pages PageIdentity instances
Returns
HtmlFileCacheUpdate

Definition at line 67 of file HtmlFileCacheUpdate.php.

References $pages.

Referenced by newFromTitles(), and HtmlCacheUpdater\purgeTitleUrls().

◆ newFromTitles()

static HtmlFileCacheUpdate::newFromTitles (   $pages)
static
Deprecated:
since 1.37 use newFromPages() instead
Parameters
iterable<PageIdentity>$pages PageIdentity instances
Returns
HtmlFileCacheUpdate

Definition at line 56 of file HtmlFileCacheUpdate.php.

References $pages, newFromPages(), and wfDeprecated().

Member Data Documentation

◆ $pages

PageIdentity [] HtmlFileCacheUpdate::$pages
private

List of pages.

Definition at line 33 of file HtmlFileCacheUpdate.php.

Referenced by __construct(), newFromPages(), and newFromTitles().


The documentation for this class was generated from the following file: