23use Wikimedia\Assert\Assert;
38 private function __construct( array $pages ) {
39 $this->pages = $pages;
44 Assert::parameterType( __CLASS__, $update,
'$update' );
45 '@phan-var self $update';
47 $this->pages = array_merge( $this->pages, $update->pages );
69 foreach ( $pages as $pg ) {
70 $key = CacheKeyHelper::getKeyForPage( $pg );
71 $pagesByKey[$key] = $pg;
74 return new self( $pagesByKey );
78 foreach ( $this->pages as $pg ) {
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Logs a warning that a deprecated feature was used.
static clearFileCache( $page)
Clear the file caches for a page for all actions.
HTMLFileCache purge update for a set of titles.
merge(MergeableUpdate $update)
Merge this enqueued update with a new MergeableUpdate of the same qualified class name.
doUpdate()
Perform the actual work.
static newFromPages( $pages)
static newFromTitles( $pages)
Interface that deferrable updates should implement.
Interface for objects (potentially) representing an editable wiki page.
Interface that deferrable updates can implement to signal that updates can be combined.