36 private $revisionStore;
65 $this->revisionStore = $revisionStore;
73 return 'ar_timestamp';
82 foreach ( $this->ids as $id ) {
83 $timestamps[] = $db->timestamp( $id );
86 $arQuery = $this->revisionStore->getArchiveQueryInfo();
87 $tables = $arQuery[
'tables'];
88 $fields = $arQuery[
'fields'];
90 'ar_namespace' => $this->
getPage()->getNamespace(),
91 'ar_title' => $this->
getPage()->getDBkey(),
92 'ar_timestamp' => $timestamps,
94 $join_conds = $arQuery[
'joins'];
95 $options = [
'ORDER BY' =>
'ar_timestamp DESC' ];
106 return $db->select( $tables,
120 return Status::newGood();
124 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.
static getRelationType()
Get the DB field name associated with the ID list.
__construct(IContextSource $context, PageIdentity $page, array $ids, LBFactory $lbFactory, HookContainer $hookContainer, HtmlCacheUpdater $htmlCacheUpdater, RevisionStore $revisionStore)
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.
Interface for objects which can provide a MediaWiki context on request.
Interface for objects (potentially) representing an editable wiki page.