MediaWiki  1.33.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 
94 
107 
114 
121 
127 
$wgMediaViewerIsInBeta
bool $wgMediaViewerIsInBeta
If set, Media Viewer will try to use BetaFeatures.
Definition: MultimediaViewer.php:93
$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
$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:126
$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
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
array
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))
$wgMessagesDirs
$wgMessagesDirs['ReplaceText']
Definition: ReplaceText.php:50
$wgMediaViewerEnableByDefaultForAnonymous
bool null $wgMediaViewerEnableByDefaultForAnonymous
Overrides $wgMediaViewerEnableByDefault for anonymous users.
Definition: MultimediaViewer.php:120
$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:45
$wgMediaViewerEnableByDefault
bool $wgMediaViewerEnableByDefault
If trueish, and $wgMediaViewerIsInBeta is unset, Media Viewer will be turned on by default.
Definition: MultimediaViewer.php:113
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:1092
$wgMediaViewerRecordVirtualViewBeaconURI
string bool $wgMediaViewerRecordVirtualViewBeaconURI
If set, records a virtual view via the provided beacon URI.
Definition: MultimediaViewer.php:132