72 return 'oi_archive_name';
76 return 'deleterevision';
80 return File::DELETED_FILE;
89 foreach ( $this->ids as $timestamp ) {
90 $archiveNames[] = $timestamp .
'!' . $this->title->getDBkey();
98 'oi_name' => $this->title->getDBkey(),
99 'oi_archive_name' => $archiveNames
102 [
'ORDER BY' =>
'oi_timestamp DESC' ],
112 $this->deleteBatch = [];
113 $this->storeBatch = [];
114 $this->cleanupBatch = [];
118 $status = Status::newGood();
119 $repo = $this->repoGroup->getLocalRepo();
120 if ( $this->storeBatch ) {
123 if ( !$status->isOK() ) {
126 if ( $this->deleteBatch ) {
127 $status->merge( $repo->deleteBatch( $this->deleteBatch ) );
129 if ( !$status->isOK() ) {
134 if ( $this->cleanupBatch ) {
135 $status->merge( $repo->cleanupDeletedBatch( $this->cleanupBatch ) );
142 $file = $this->repoGroup->getLocalRepo()->newFile( $this->title );
144 $file->purgeDescription();
148 foreach ( $this->ids as $timestamp ) {
149 $archiveName = $timestamp .
'!' . $this->title->getDBkey();
150 $file->purgeOldThumbnails( $archiveName );
151 $purgeUrls[] =
$file->getArchiveUrl( $archiveName );
154 $this->htmlCacheUpdater->purgeUrls(
156 HtmlCacheUpdater::PURGE_INTENT_TXROUND_REFLECTED
159 return Status::newGood();
163 return File::DELETED_RESTRICTED;
Class to invalidate the CDN and HTMLFileCache entries associated with URLs/titles.
static getQueryInfo(array $options=[])
Return the tables, fields, and join conditions to be selected to create a new oldlocalfile object.
Prioritized list of file repositories.
Item class for an oldimage table row.
List for oldimage table items.
getSuppressBit()
Get the integer value of the flag used for suppression.
__construct(IContextSource $context, PageIdentity $page, array $ids, LBFactory $lbFactory, HtmlCacheUpdater $htmlCacheUpdater, RepoGroup $repoGroup)
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.
HtmlCacheUpdater $htmlCacheUpdater
doPreCommitUpdates()
A hook for setVisibility(): do batch updates pre-commit.
clearFileOps()
Clear any data structures needed for doPreCommitUpdates() and doPostCommitUpdates() STUB.
newItem( $row)
Create an item object from a DB result row.
getType()
Get the internal type name of this list.
static getRevdelConstant()
Get the revision deletion constant for this list type Override this function.
static getRestriction()
Get the user right required for this list type Override this function.
Interface for objects which can provide a MediaWiki context on request.
Interface for objects (potentially) representing an editable wiki page.
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.