MediaWiki REL1_34
MultimediaViewer.php
Go to the documentation of this file.
1<?php
24if ( function_exists( 'wfLoadExtension' ) ) {
25 wfLoadExtension( 'MultimediaViewer' );
26 // Keep i18n globals so mergeMessageFileList.php doesn't break
27 $wgMessagesDirs['MultimediaViewer'] = __DIR__ . '/i18n';
28 wfWarn(
29 'Deprecated PHP entry point used for MultimediaViewer extension. ' .
30 'Please use wfLoadExtension instead, ' .
31 'see https://www.mediawiki.org/wiki/Extension_registration for more details.'
32 );
33 return;
34} else {
35 die( 'This version of the MultimediaViewer extension requires MediaWiki 1.25+' );
36}
37
38// The following is for the purposes of IDEs and documentation. It is not
39// executed.
40
48
56
64
72
80
88
101
107
114
120
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
wfLoadExtension( $ext, $path=null)
Load an extension.
int bool $wgMediaViewerDurationLoggingSamplingFactor
If set, records loading times via EventLogging.
int bool $wgMediaViewerAttributionLoggingSamplingFactor
If set, records whether image attribution data was available.
bool $wgMediaViewerEnableByDefault
If true, Media Viewer will be turned on by default.
bool null $wgMediaViewerEnableByDefaultForAnonymous
Overrides $wgMediaViewerEnableByDefault for anonymous users.
int bool $wgMediaViewerDurationLoggingLoggedinSamplingFactor
If set, records loading times via EventLogging with factor specific to loggedin users.
bool $wgMediaViewerUseThumbnailGuessing
When this is enabled, MediaViewer will try to guess image URLs instead of making an imageinfo API to ...
int bool $wgMediaViewerNetworkPerformanceSamplingFactor
If set, records image load network performance via EventLogging once per this many requests.
array bool $wgMediaViewerActionLoggingSamplingFactorMap
If set, records user actions via EventLogging and applies a sampling factor according to the map.
string bool $wgMediaViewerImageQueryParameter
If set, adds a query parameter to image requests made by Media Viewer.
string bool $wgMediaViewerRecordVirtualViewBeaconURI
If set, records a virtual view via the provided beacon URI.
int bool $wgMediaViewerDimensionLoggingSamplingFactor
If set, records whether image dimension data was available.
$wgMessagesDirs['ReplaceText']