20 private readonly
int $fileMigrationStage;
23 parent::__construct(
'Unusedimages' );
46 $imageTables = [
'image' ];
47 $nameField =
'img_name';
48 $timestampField =
'img_timestamp';
52 $imageTables = [
'file',
'filerevision' ];
53 $nameField =
'file_name';
54 $timestampField =
'fr_timestamp';
55 $fileConds = [
'file_deleted' => 0 ];
56 $fileJoins = [
'filerevision' => [
'JOIN',
'file_latest = fr_id' ] ];
60 'tables' => [ ...$imageTables,
'linktarget',
'imagelinks' ],
63 'title' => $nameField,
64 'value' => $timestampField,
67 'il_target_id' =>
null,
72 'linktarget' => [
'LEFT JOIN', [
'lt_title = ' . $nameField,
'lt_namespace' =>
NS_FILE ] ],
73 'imagelinks' => [
'LEFT JOIN',
'il_target_id = lt_id' ]
79 $retval[
'tables'] = [ ...$imageTables,
'page',
'categorylinks',
'linktarget',
'imagelinks' ];
80 $retval[
'conds'][
'page_namespace'] =
NS_FILE;
81 $retval[
'conds'][
'cl_from'] =
null;
82 $retval[
'join_conds'][
'page'] = [
'JOIN', $nameField .
' = page_title' ];
83 $retval[
'join_conds'][
'categorylinks'] = [
'LEFT JOIN',
'cl_from = page_id' ];
98 'unusedimagestext-categorizedimgisused'
101 return $this->
msg(
'unusedimagestext' )->parseAsBlock();
106 return 'maintenance';
114class_alias( SpecialUnusedImages::class,
'SpecialUnusedImages' );
const SCHEMA_COMPAT_READ_OLD
A class containing constants representing the names of configuration variables.
const CountCategorizedImagesAsUsed
Name constant for the CountCategorizedImagesAsUsed setting, for use with Config::get()
const FileSchemaMigrationStage
Name constant for the FileSchemaMigrationStage setting, for use with Config::get()
Variant of QueryPage which uses a gallery to output results, thus suited for reports generating image...
setDatabaseProvider(IConnectionProvider $databaseProvider)
getConfig()
Shortcut to get main config object.
msg( $key,... $params)
Wrapper around wfMessage that sets the current context.