Go to the documentation of this file.
43 return 'oi_archive_name';
47 return 'deleterevision';
60 foreach ( $this->ids as $timestamp ) {
61 $archiveNames[] = $timestamp .
'!' . $this->title->getDBkey();
69 'oi_name' => $this->title->getDBkey(),
70 'oi_archive_name' => $archiveNames
73 [
'ORDER BY' =>
'oi_timestamp DESC' ],
83 $this->deleteBatch = [];
84 $this->storeBatch = [];
85 $this->cleanupBatch = [];
91 if ( $this->storeBatch ) {
97 if ( $this->deleteBatch ) {
98 $status->merge( $repo->deleteBatch( $this->deleteBatch ) );
105 if ( $this->cleanupBatch ) {
106 $status->merge( $repo->cleanupDeletedBatch( $this->cleanupBatch ) );
113 $file = MediaWikiServices::getInstance()->getRepoGroup()->getLocalRepo()
114 ->newFile( $this->title );
116 $file->purgeDescription();
120 foreach ( $this->ids as $timestamp ) {
121 $archiveName = $timestamp .
'!' . $this->title->getDBkey();
122 $file->purgeOldThumbnails( $archiveName );
123 $purgeUrls[] =
$file->getArchiveUrl( $archiveName );
static getQueryInfo(array $options=[])
Return the tables, fields, and join conditions to be selected to create a new oldlocalfile object.
static addUpdate(DeferrableUpdate $update, $stage=self::POSTSEND)
Add an update to the deferred list to be run later by execute()
if(PHP_SAPI !='cli-server') if(!isset( $_SERVER['SCRIPT_FILENAME'])) $file
Item class for a filearchive table row.
newItem( $row)
Create an item object from a DB result row.
clearFileOps()
Clear any data structures needed for doPreCommitUpdates() and doPostCommitUpdates() STUB.
static getRestriction()
Get the user right required for this list type Override this function.
static getRevdelConstant()
Get the revision deletion constant for this list type Override this function.
doPreCommitUpdates()
A hook for setVisibility(): do batch updates pre-commit.
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.
Handles purging the appropriate CDN objects given a list of URLs or Title instances.
static newGood( $value=null)
Factory function for good results.
Item class for an oldimage table row.
getType()
Get the internal type name of this list.
getSuppressBit()
Get the integer value of the flag used for suppression.
List for oldimage table items.