Go to the documentation of this file.
42 return 'oi_archive_name';
46 return 'deleterevision';
59 foreach ( $this->ids
as $timestamp ) {
60 $archiveNames[] = $timestamp .
'!' . $this->
title->getDBkey();
67 'oi_name' => $this->
title->getDBkey(),
68 'oi_archive_name' => $archiveNames
71 [
'ORDER BY' =>
'oi_timestamp DESC' ]
80 $this->deleteBatch = [];
81 $this->storeBatch = [];
82 $this->cleanupBatch = [];
88 if ( $this->storeBatch ) {
94 if ( $this->deleteBatch ) {
95 $status->merge( $repo->deleteBatch( $this->deleteBatch ) );
102 if ( $this->cleanupBatch ) {
103 $status->merge( $repo->cleanupDeletedBatch( $this->cleanupBatch ) );
112 $file->purgeDescription();
116 foreach ( $this->ids
as $timestamp ) {
117 $archiveName = $timestamp .
'!' . $this->
title->getDBkey();
118 $file->purgeOldThumbnails( $archiveName );
119 $purgeUrls[] = $file->getArchiveUrl( $archiveName );
static singleton()
Get a RepoGroup instance.
this hook is for auditing only RecentChangesLinked and Watchlist RecentChangesLinked and Watchlist Do not use this to implement individual filters if they are compatible with the ChangesListFilter and ChangesListFilterGroup structure use sub classes of those in conjunction with the ChangesListSpecialPageStructuredFilters hook This hook can be used to implement filters that do not implement that or custom behavior that is not an individual filter e g Watchlist and Watchlist you will want to construct new ChangesListBooleanFilter or ChangesListStringOptionsFilter objects When constructing you specify which group they belong to You can reuse existing or create your you must register them with $special registerFilterGroup removed from all revisions and log entries to which it was applied This gives extensions a chance to take it off their books as the deletion has already been partly carried out by this point or something similar the user will be unable to create the tag set $status
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
static addUpdate(DeferrableUpdate $update, $stage=self::POSTSEND)
Add an update to the deferred list to be run later by execute()
static selectFields()
Fields in the oldimage table.
newItem( $row)
Create an item object from a DB result row.
clearFileOps()
Clear any data structures needed for doPreCommitUpdates() and doPostCommitUpdates() STUB.
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
static getRestriction()
Get the user right required for this list type Override this function.
Abstract base class for a list of deletable items.
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 appropriate CDN URLs given a title (or titles)
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.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as
List for oldimage table items.
wfLocalFile( $title)
Get an object referring to a locally registered file.
the array() calling protocol came about after MediaWiki 1.4rc1.