Use PHPUnit_Framework_TestCase in a few utils/ tests
[mediawiki.git] / includes / skins / SkinApiTemplate.php
blob2062da82b796419dfc0b4851cf70fbb700630b4c
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.
7 * Created on Sep 08, 2014
9 * Copyright © 2014 Brad Jorsch <bjorsch@wikimedia.org>
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.
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.
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
26 * @file
29 /**
30 * BaseTemplate class for the 'apioutput' skin
31 * @since 1.25
33 class SkinApiTemplate extends BaseTemplate {
35 public function execute() {
36 $this->html( 'headelement' ) ?>
38 <div class="mw-body" role="main">
39 <h1 class="firstHeading">
40 <span dir="auto"><?php $this->html( 'title' ) ?></span>
41 </h1>
42 <div class="mw-body-content">
43 <?php $this->html( 'bodytext' ) ?>
44 </div>
45 </div>
47 <?php $this->printTrail() ?>
48 </body></html>
49 <?php
52 // Skip work and hooks for stuff we don't use
54 function getToolbox() {
55 return array();
58 function getPersonalTools() {
59 return array();
62 function getSidebar( $options = array() ) {
63 return array();