MediaWiki
master
SlideshowImageGallery.php
Go to the documentation of this file.
1
<?php
23
use
MediaWiki\Context\IContextSource
;
24
25
class
SlideshowImageGallery
extends
TraditionalImageGallery
{
26
public
function
__construct
( $mode =
'traditional'
, ?
IContextSource
$context =
null
) {
27
parent::__construct( $mode, $context );
28
// Does not support per row option.
29
$this->mPerRow = 0;
30
}
31
36
protected
function
getModules
() {
37
return
[
'mediawiki.page.gallery.slideshow'
];
38
}
39
40
public
function
setAdditionalOptions
(
$params
) {
41
$this->mAttribs[
'data-showthumbnails'
] = isset(
$params
[
'showthumbnails'
] );
42
}
43
}
$params
array $params
The job parameters.
Definition
UploadJobTrait.php:46
SlideshowImageGallery
Definition
SlideshowImageGallery.php:25
SlideshowImageGallery\setAdditionalOptions
setAdditionalOptions( $params)
Allow setting additional options.
Definition
SlideshowImageGallery.php:40
SlideshowImageGallery\getModules
getModules()
Add javascript adds interface elements.
Definition
SlideshowImageGallery.php:36
SlideshowImageGallery\__construct
__construct( $mode='traditional', ?IContextSource $context=null)
Create a new image gallery object.
Definition
SlideshowImageGallery.php:26
TraditionalImageGallery
Definition
TraditionalImageGallery.php:36
MediaWiki\Context\IContextSource
Interface for objects which can provide a MediaWiki context on request.
Definition
IContextSource.php:71
includes
gallery
SlideshowImageGallery.php
Generated on Mon Dec 30 2024 14:23:56 for MediaWiki by
1.10.0