MediaWiki  1.34.0
MultimediaViewer.php
Go to the documentation of this file.
1 <?php
24 if ( 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 
$wgMediaViewerUseThumbnailGuessing
bool $wgMediaViewerUseThumbnailGuessing
When this is enabled, MediaViewer will try to guess image URLs instead of making an imageinfo API to ...
Definition: MultimediaViewer.php:100
$wgMediaViewerAttributionLoggingSamplingFactor
int bool $wgMediaViewerAttributionLoggingSamplingFactor
If set, records whether image attribution data was available.
Definition: MultimediaViewer.php:71
$wgMediaViewerDurationLoggingLoggedinSamplingFactor
int bool $wgMediaViewerDurationLoggingLoggedinSamplingFactor
If set, records loading times via EventLogging with factor specific to loggedin users.
Definition: MultimediaViewer.php:63
$wgMediaViewerDimensionLoggingSamplingFactor
int bool $wgMediaViewerDimensionLoggingSamplingFactor
If set, records whether image dimension data was available.
Definition: MultimediaViewer.php:79
$wgMediaViewerImageQueryParameter
string bool $wgMediaViewerImageQueryParameter
If set, adds a query parameter to image requests made by Media Viewer.
Definition: MultimediaViewer.php:119
$wgMediaViewerNetworkPerformanceSamplingFactor
int bool $wgMediaViewerNetworkPerformanceSamplingFactor
If set, records image load network performance via EventLogging once per this many requests.
Definition: MultimediaViewer.php:47
$wgMediaViewerDurationLoggingSamplingFactor
int bool $wgMediaViewerDurationLoggingSamplingFactor
If set, records loading times via EventLogging.
Definition: MultimediaViewer.php:55
$wgMessagesDirs
$wgMessagesDirs['ReplaceText']
Definition: ReplaceText.php:50
$wgMediaViewerEnableByDefaultForAnonymous
bool null $wgMediaViewerEnableByDefaultForAnonymous
Overrides $wgMediaViewerEnableByDefault for anonymous users.
Definition: MultimediaViewer.php:113
$wgMediaViewerActionLoggingSamplingFactorMap
array bool $wgMediaViewerActionLoggingSamplingFactorMap
If set, records user actions via EventLogging and applies a sampling factor according to the map.
Definition: MultimediaViewer.php:87
wfLoadExtension
wfLoadExtension( $ext, $path=null)
Load an extension.
Definition: GlobalFunctions.php:47
$wgMediaViewerEnableByDefault
bool $wgMediaViewerEnableByDefault
If true, Media Viewer will be turned on by default.
Definition: MultimediaViewer.php:106
wfWarn
wfWarn( $msg, $callerOffset=1, $level=E_USER_NOTICE)
Send a warning either to the debug log or in a PHP error depending on $wgDevelopmentWarnings.
Definition: GlobalFunctions.php:1065
$wgMediaViewerRecordVirtualViewBeaconURI
string bool $wgMediaViewerRecordVirtualViewBeaconURI
If set, records a virtual view via the provided beacon URI.
Definition: MultimediaViewer.php:125