Debian Codegraph @

extensions/VisualEditor/modules/ve-mw/init/apiresponsecache/ve.init.mw.GalleryImageInfoCache.js

raw symbols SCIP
1 /*!
2 * VisualEditor MediaWiki Initialization GalleryImageInfoCache class.
3 *
4 * @copyright See AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
6 */
7
8 /**
9 * Get thumbnail URL information about gallery images.
10 *
11 * @class
12 * @extends ve.init.mw.ImageInfoCache
13 * @constructor
14 * @param {mw.Api} [api]
15 */
16 ve.init.mw.GalleryImageInfoCache = function VeInitMwGalleryImageInfoCache() {
17 // Parent constructor
18 ve.init.mw.GalleryImageInfoCache.super.apply( this, arguments );
19 };
20
21 /* Inheritance */
22
23 OO.inheritClass( ve.init.mw.GalleryImageInfoCache, ve.init.mw.ImageInfoCache );
24
25 /* Methods */
26
27 /**
28 * @inheritdoc
29 */
30 ve.init.mw.GalleryImageInfoCache.prototype.getRequestPromise = function ( subqueue ) {
31 return this.api.get(
32 {
33 action: 'query',
34 prop: 'imageinfo',
35 iiprop: 'url|size',
36 titles: subqueue,
37 iiurlwidth: 200,
38 iiurlheight: 200
39 },
40 { type: 'POST' }
41 );
42 };