34 private $revisionStore;
66 $this->revisionStore = $revisionStore;
74 return 'ar_timestamp';
83 foreach ( $this->ids as $id ) {
84 $timestamps[] = $db->timestamp( $id );
87 $arQuery = $this->revisionStore->getArchiveQueryInfo();
88 $tables = $arQuery[
'tables'];
89 $fields = $arQuery[
'fields'];
91 'ar_namespace' => $this->
getPage()->getNamespace(),
92 'ar_title' => $this->
getPage()->getDBkey(),
93 'ar_timestamp' => $timestamps,
95 $join_conds = $arQuery[
'joins'];
96 $options = [
'ORDER BY' =>
'ar_timestamp DESC' ];
107 return $db->select( $tables,
121 return Status::newGood();
125 return Status::newGood();
Class to invalidate the CDN and HTMLFileCache entries associated with URLs/titles.
Item class for a archive table row.
List for archive table items, i.e.
doPreCommitUpdates()
A hook for setVisibility(): do batch updates pre-commit.
newItem( $row)
Create an item object from a DB result row.
__construct(IContextSource $context, PageIdentity $page, array $ids, LBFactory $lbFactory, HookContainer $hookContainer, HtmlCacheUpdater $htmlCacheUpdater, RevisionStore $revisionStore, WANObjectCache $wanObjectCache)
static getRelationType()
Get the DB field name associated with the ID list.
doPostCommitUpdates(array $visibilityChangeMap)
A hook for setVisibility(): do any necessary updates post-commit.
getType()
Get the internal type name of this list.
List for revision table items.
Multi-datacenter aware caching interface.
Interface for objects which can provide a MediaWiki context on request.
Interface for objects (potentially) representing an editable wiki page.