34 private $revisionStore;
63 $this->revisionStore = $revisionStore;
71 return 'ar_timestamp';
80 foreach ( $this->ids as $id ) {
81 $timestamps[] = $db->timestamp( $id );
84 $arQuery = $this->revisionStore->getArchiveQueryInfo();
85 $tables = $arQuery[
'tables'];
86 $fields = $arQuery[
'fields'];
88 'ar_namespace' => $this->
getPage()->getNamespace(),
89 'ar_title' => $this->
getPage()->getDBkey(),
90 'ar_timestamp' => $timestamps,
92 $join_conds = $arQuery[
'joins'];
93 $options = [
'ORDER BY' =>
'ar_timestamp DESC' ];
104 return $db->select( $tables,
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.
static newGood( $value=null)
Factory function for good results.
Interface for objects which can provide a MediaWiki context on request.
Interface for objects (potentially) representing an editable wiki page.