Jump to content

Příručka:$wgMediaHandlers

From mediawiki.org
This page is a translated version of the page Manual:$wgMediaHandlers and the translation is 18% complete.
Obrázky: $wgMediaHandlers
Pluginy pro manipulaci s typy souborů médií.
Zavedeno od verze:1.10.0 (r21411)
Odstraněno od verze:stále se používá
Povolené hodnoty:(pole)
Výchozí hodnota:(viz níže)

Podrobnosti

Pluginy pro manipulaci s typy souborů médií. Každá položka v poli mapuje typ MIME na název třídy PHP. Vestavěné obslužné programy médií MediaWiki se nacházejí v adresáři include/media.

Výchozí hodnota

Verze MediaWiki:
1.28
/**
 * Plugins for media file type handling.
 * Each entry in the array maps a MIME type to a class name
 *
 * Core media handlers are listed in MediaHandlerFactory,
 * and extensions should use extension.json.
 */
$wgMediaHandlers = [];
Verze MediaWiki:
1.26 – 1.27
/**
 * Plugins for media file type handling.
 * Each entry in the array maps a MIME type to a class name
 */
$wgMediaHandlers = [
	'image/jpeg' => 'JpegHandler',
	'image/png' => 'PNGHandler',
	'image/gif' => 'GIFHandler',
	'image/tiff' => 'TiffHandler',
	'image/webp' => 'WebPHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/x-bmp' => 'BmpHandler',
	'image/x-xcf' => 'XCFHandler',
	'image/svg+xml' => 'SvgHandler', // official
	'image/svg' => 'SvgHandler', // compat
	'image/vnd.djvu' => 'DjVuHandler', // official
	'image/x.djvu' => 'DjVuHandler', // compat
	'image/x-djvu' => 'DjVuHandler', // compat
];
Verze MediaWiki:
1.18 – 1.25
$wgMediaHandlers = array(
	'image/jpeg' => 'JpegHandler',
	'image/png' => 'PNGHandler',
	'image/gif' => 'GIFHandler',
	'image/tiff' => 'TiffHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/x-bmp' => 'BmpHandler',
	'image/x-xcf' => 'XCFHandler',
	'image/svg+xml' => 'SvgHandler', // official
	'image/svg' => 'SvgHandler', // compat
	'image/vnd.djvu' => 'DjVuHandler', // official
	'image/x.djvu' => 'DjVuHandler', // compat
	'image/x-djvu' => 'DjVuHandler', // compat
);
Verze MediaWiki:
1.17
$wgMediaHandlers = array(
	'image/jpeg' => 'BitmapHandler',
	'image/png' => 'PNGHandler',
	'image/gif' => 'GIFHandler',
	'image/tiff' => 'TiffHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/x-bmp' => 'BmpHandler',
	'image/svg+xml' => 'SvgHandler', // official
	'image/svg' => 'SvgHandler', // compat
	'image/vnd.djvu' => 'DjVuHandler', // official
	'image/x.djvu' => 'DjVuHandler', // compat
	'image/x-djvu' => 'DjVuHandler', // compat
);
Verze MediaWiki:
1.16
$wgMediaHandlers = array(
	'image/jpeg' => 'BitmapHandler',
	'image/png' => 'BitmapHandler',
	'image/gif' => 'GIFHandler',
	'image/tiff' => 'TiffHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/x-bmp' => 'BmpHandler',
	'image/svg+xml' => 'SvgHandler', // official
	'image/svg' => 'SvgHandler', // compat
	'image/vnd.djvu' => 'DjVuHandler', // official
	'image/x.djvu' => 'DjVuHandler', // compat
	'image/x-djvu' => 'DjVuHandler', // compat
);
Verze MediaWiki:
1.15
$wgMediaHandlers = array(
	'image/jpeg' => 'BitmapHandler',
	'image/png' => 'BitmapHandler',
	'image/gif' => 'BitmapHandler',
	'image/tiff' => 'TiffHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/x-bmp' => 'BmpHandler',
	'image/svg+xml' => 'SvgHandler', // official
	'image/svg' => 'SvgHandler', // compat
	'image/vnd.djvu' => 'DjVuHandler', // official
	'image/x.djvu' => 'DjVuHandler', // compat
	'image/x-djvu' => 'DjVuHandler', // compat
);
Verze MediaWiki:
1.13 – 1.14
$wgMediaHandlers = array(
	'image/jpeg' => 'BitmapHandler',
	'image/png' => 'BitmapHandler',
	'image/gif' => 'BitmapHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/x-bmp' => 'BmpHandler',
	'image/svg+xml' => 'SvgHandler', // official
	'image/svg' => 'SvgHandler', // compat
	'image/vnd.djvu' => 'DjVuHandler', // official
	'image/x.djvu' => 'DjVuHandler', // compat
	'image/x-djvu' => 'DjVuHandler', // compat
);
Verze MediaWiki:
1.12
$wgMediaHandlers = array(
	'image/jpeg' => 'BitmapHandler',
	'image/png' => 'BitmapHandler',
	'image/gif' => 'BitmapHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/svg+xml' => 'SvgHandler', // official
	'image/svg' => 'SvgHandler', // compat
	'image/vnd.djvu' => 'DjVuHandler', // official
	'image/x.djvu' => 'DjVuHandler', // compat
	'image/x-djvu' => 'DjVuHandler', // compat
);
Verze MediaWiki:
1.11
$wgMediaHandlers = array(
	'image/jpeg' => 'BitmapHandler',
	'image/png' => 'BitmapHandler',
	'image/gif' => 'BitmapHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/svg+xml' => 'SvgHandler',
	'image/svg' => 'SvgHandler',
	'image/vnd.djvu' => 'DjVuHandler',
);
Verze MediaWiki:
1.10
$wgMediaHandlers = array(
	'image/jpeg' => 'BitmapHandler',
	'image/png' => 'BitmapHandler',
	'image/gif' => 'BitmapHandler',
	'image/x-ms-bmp' => 'BmpHandler',
	'image/svg+xml' => 'SvgHandler',
	'image/vnd.djvu' => 'DjVuHandler',
);