MediaWiki REL1_31
SkinApiTemplate.php
Go to the documentation of this file.
1<?php
32
33 public function execute() {
34 $this->html( 'headelement' ) ?>
35
36 <div class="mw-body" role="main">
37 <h1 class="firstHeading"><?php $this->html( 'title' ) ?></h1>
38 <div class="mw-body-content">
39 <?php $this->html( 'bodytext' ) ?>
40 </div>
41 </div>
42
43 <?php $this->printTrail() ?>
44 </body></html>
45<?php
46 }
47
48 // Skip work and hooks for stuff we don't use
49
50 function getToolbox() {
51 return [];
52 }
53
54 function getPersonalTools() {
55 return [];
56 }
57
58 function getSidebar( $options = [] ) {
59 return [];
60 }
61}
New base template for a skin's template extended from QuickTemplate this class features helper method...
printTrail()
Output getTrail.
BaseTemplate class for the 'apioutput' skin.
getSidebar( $options=[])
execute()
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
getToolbox()
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
getPersonalTools()
Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Definition hooks.txt:2001