]> scripts.mit.edu Git - autoinstallsdev/mediawiki.git/blob - includes/skins/SkinApi.php
MediaWiki 1.30.2
[autoinstallsdev/mediawiki.git] / includes / skins / SkinApi.php
1 <?php
2 /**
3  * Extremely basic "skin" for API output, which needs to output a page without
4  * the usual skin elements but still using CSS, JS, and such via OutputPage and
5  * ResourceLoader.
6  *
7  * Created on Sep 08, 2014
8  *
9  * Copyright © 2014 Wikimedia Foundation and contributors
10  *
11  * This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License along
22  * with this program; if not, write to the Free Software Foundation, Inc.,
23  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  * http://www.gnu.org/copyleft/gpl.html
25  *
26  * @file
27  */
28
29 /**
30  * SkinTemplate class for API output
31  * @since 1.25
32  */
33 class SkinApi extends SkinTemplate {
34         public $skinname = 'apioutput';
35         public $template = 'SkinApiTemplate';
36
37         public function setupSkinUserCss( OutputPage $out ) {
38                 parent::setupSkinUserCss( $out );
39                 $out->addModuleStyles( 'mediawiki.skinning.interface' );
40         }
41
42         // Skip work and hooks for stuff we don't use
43
44         function buildSidebar() {
45                 return [];
46         }
47
48         function getNewtalks() {
49                 return '';
50         }
51
52         function getSiteNotice() {
53                 return '';
54         }
55
56         public function getLanguages() {
57                 return [];
58         }
59
60         protected function buildPersonalUrls() {
61                 return [];
62         }
63
64         protected function buildContentNavigationUrls() {
65                 return [];
66         }
67
68         protected function buildNavUrls() {
69                 return [];
70         }
71 }