MediaWiki REL1_32
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
94
107
114
121
127
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 trueish, and $wgMediaViewerIsInBeta is unset, 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.
bool $wgMediaViewerIsInBeta
If set, Media Viewer will try to use BetaFeatures.
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']
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))