39 private $revisionStore;
68 $this->revisionStore = $revisionStore;
76 return 'ar_timestamp';
85 foreach ( $this->ids as $id ) {
86 $timestamps[] = $db->timestamp( $id );
89 $queryBuilder = $this->revisionStore->newArchiveSelectQueryBuilder( $db )
92 'ar_namespace' => $this->
getPage()->getNamespace(),
93 'ar_title' => $this->
getPage()->getDBkey(),
94 'ar_timestamp' => $timestamps,
96 ->orderBy(
'ar_timestamp', SelectQueryBuilder::SORT_DESC );
98 MediaWikiServices::getInstance()->getChangeTagsStore()->modifyDisplayQueryBuilder( $queryBuilder,
'archive' );
100 return $queryBuilder->caller( __METHOD__ )->fetchResultSet();
108 return Status::newGood();
112 return Status::newGood();
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.
doPostCommitUpdates(array $visibilityChangeMap)
A hook for setVisibility(): do any necessary updates post-commit.
getType()
Get the internal type name of this list.
__construct(IContextSource $context, PageIdentity $page, array $ids, LBFactory $lbFactory, HookContainer $hookContainer, HTMLCacheUpdater $htmlCacheUpdater, RevisionStore $revisionStore)
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.