MediaWiki
REL1_31
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
47
$wgMediaViewerNetworkPerformanceSamplingFactor
=
false
;
48
55
$wgMediaViewerDurationLoggingSamplingFactor
=
false
;
56
63
$wgMediaViewerDurationLoggingLoggedinSamplingFactor
=
false
;
64
71
$wgMediaViewerAttributionLoggingSamplingFactor
=
false
;
72
79
$wgMediaViewerDimensionLoggingSamplingFactor
=
false
;
80
87
$wgMediaViewerActionLoggingSamplingFactorMap
=
false
;
88
93
$wgMediaViewerIsInBeta
=
false
;
94
106
$wgMediaViewerUseThumbnailGuessing
=
false
;
107
113
$wgMediaViewerEnableByDefault
=
true
;
114
120
$wgMediaViewerEnableByDefaultForAnonymous
=
null
;
121
126
$wgMediaViewerImageQueryParameter
=
false
;
127
132
$wgMediaViewerRecordVirtualViewBeaconURI
=
false
;
wfLoadExtension
wfLoadExtension( $ext, $path=null)
Load an extension.
Definition
GlobalFunctions.php:45
$wgMediaViewerDurationLoggingSamplingFactor
int bool $wgMediaViewerDurationLoggingSamplingFactor
If set, records loading times via EventLogging.
Definition
MultimediaViewer.php:55
$wgMediaViewerAttributionLoggingSamplingFactor
int bool $wgMediaViewerAttributionLoggingSamplingFactor
If set, records whether image attribution data was available.
Definition
MultimediaViewer.php:71
$wgMediaViewerEnableByDefault
bool $wgMediaViewerEnableByDefault
If trueish, and $wgMediaViewerIsInBeta is unset, Media Viewer will be turned on by default.
Definition
MultimediaViewer.php:113
$wgMediaViewerEnableByDefaultForAnonymous
bool null $wgMediaViewerEnableByDefaultForAnonymous
Overrides $wgMediaViewerEnableByDefault for anonymous users.
Definition
MultimediaViewer.php:120
$wgMediaViewerDurationLoggingLoggedinSamplingFactor
int bool $wgMediaViewerDurationLoggingLoggedinSamplingFactor
If set, records loading times via EventLogging with factor specific to loggedin users.
Definition
MultimediaViewer.php:63
$wgMediaViewerUseThumbnailGuessing
bool $wgMediaViewerUseThumbnailGuessing
When this is enabled, MediaViewer will try to guess image URLs instead of making an imageinfo API to ...
Definition
MultimediaViewer.php:106
$wgMediaViewerNetworkPerformanceSamplingFactor
int bool $wgMediaViewerNetworkPerformanceSamplingFactor
If set, records image load network performance via EventLogging once per this many requests.
Definition
MultimediaViewer.php:47
$wgMediaViewerIsInBeta
bool $wgMediaViewerIsInBeta
If set, Media Viewer will try to use BetaFeatures.
Definition
MultimediaViewer.php:93
$wgMediaViewerActionLoggingSamplingFactorMap
array bool $wgMediaViewerActionLoggingSamplingFactorMap
If set, records user actions via EventLogging and applies a sampling factor according to the map.
Definition
MultimediaViewer.php:87
$wgMediaViewerImageQueryParameter
string bool $wgMediaViewerImageQueryParameter
If set, adds a query parameter to image requests made by Media Viewer.
Definition
MultimediaViewer.php:126
$wgMediaViewerRecordVirtualViewBeaconURI
string bool $wgMediaViewerRecordVirtualViewBeaconURI
If set, records a virtual view via the provided beacon URI.
Definition
MultimediaViewer.php:132
$wgMediaViewerDimensionLoggingSamplingFactor
int bool $wgMediaViewerDimensionLoggingSamplingFactor
If set, records whether image dimension data was available.
Definition
MultimediaViewer.php:79
$wgMessagesDirs
$wgMessagesDirs['ReplaceText']
Definition
ReplaceText.php:50
extensions
MultimediaViewer
MultimediaViewer.php
Generated on Mon Nov 25 2024 15:34:20 for MediaWiki by
1.10.0