MediaWiki  master
SkinApi.php
Go to the documentation of this file.
1 <?php
31 class SkinApi extends SkinTemplate {
32  public $skinname = 'apioutput';
33  public $template = SkinApiTemplate::class;
34 
35  public function getDefaultModules() {
36  $modules = parent::getDefaultModules();
37  $modules['styles']['skin'][] = 'mediawiki.skinning.interface';
38  // There is no search box, disable 'mediawiki.searchSuggest'
39  $modules['search'] = [];
40  return $modules;
41  }
42 
43  // Skip work and hooks for stuff we don't use
44 
45  function buildSidebar() {
46  return [];
47  }
48 
49  function getNewtalks() {
50  return '';
51  }
52 
53  function getSiteNotice() {
54  return '';
55  }
56 
57  public function getLanguages() {
58  return [];
59  }
60 
61  protected function buildPersonalUrls() {
62  return [];
63  }
64 
65  protected function buildContentNavigationUrls() {
66  return [];
67  }
68 
69  protected function buildNavUrls() {
70  return [];
71  }
72 }
getNewtalks()
Definition: SkinApi.php:49
getSiteNotice()
Definition: SkinApi.php:53
SkinTemplate class for API output.
Definition: SkinApi.php:31
buildNavUrls()
Definition: SkinApi.php:69
buildPersonalUrls()
Definition: SkinApi.php:61
$skinname
Definition: SkinApi.php:32
buildContentNavigationUrls()
Definition: SkinApi.php:65
getLanguages()
Definition: SkinApi.php:57
$modules
Base class for template-based skins.
getDefaultModules()
Definition: SkinApi.php:35
$template
Definition: SkinApi.php:33
buildSidebar()
Definition: SkinApi.php:45