MediaWiki  1.34.0
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 }
SkinApiTemplate\execute
execute()
Main function, used by classes that subclass QuickTemplate to show the actual HTML output.
Definition: SkinApiTemplate.php:33
SkinApiTemplate\getSidebar
getSidebar( $options=[])
Definition: SkinApiTemplate.php:58
SkinApiTemplate\getPersonalTools
getPersonalTools()
Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
Definition: SkinApiTemplate.php:54
SkinApiTemplate
BaseTemplate class for the 'apioutput' skin.
Definition: SkinApiTemplate.php:31
SkinApiTemplate\getToolbox
getToolbox()
Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate.
Definition: SkinApiTemplate.php:50
BaseTemplate\printTrail
printTrail()
Output getTrail.
Definition: BaseTemplate.php:744
QuickTemplate\html
html( $str)
Definition: QuickTemplate.php:116
BaseTemplate
New base template for a skin's template extended from QuickTemplate this class features helper method...
Definition: BaseTemplate.php:29