MediaWiki REL1_31
SkinApi.php
Go to the documentation of this file.
1<?php
31class SkinApi extends SkinTemplate {
32 public $skinname = 'apioutput';
33 public $template = SkinApiTemplate::class;
34
35 public function setupSkinUserCss( OutputPage $out ) {
36 parent::setupSkinUserCss( $out );
37 $out->addModuleStyles( 'mediawiki.skinning.interface' );
38 }
39
40 // Skip work and hooks for stuff we don't use
41
42 function buildSidebar() {
43 return [];
44 }
45
46 function getNewtalks() {
47 return '';
48 }
49
50 function getSiteNotice() {
51 return '';
52 }
53
54 public function getLanguages() {
55 return [];
56 }
57
58 protected function buildPersonalUrls() {
59 return [];
60 }
61
62 protected function buildContentNavigationUrls() {
63 return [];
64 }
65
66 protected function buildNavUrls() {
67 return [];
68 }
69}
This class should be covered by a general architecture document which does not exist as of January 20...
SkinTemplate class for API output.
Definition SkinApi.php:31
buildPersonalUrls()
build array of urls for personal toolbar
Definition SkinApi.php:58
buildNavUrls()
build array of common navigation links
Definition SkinApi.php:66
buildSidebar()
Build an array that represents the sidebar(s), the navigation bar among them.
Definition SkinApi.php:42
getNewtalks()
Gets new talk page messages for the current user and returns an appropriate alert message (or an empt...
Definition SkinApi.php:46
getLanguages()
Generates array of language links for the current page.
Definition SkinApi.php:54
getSiteNotice()
Get the site notice.
Definition SkinApi.php:50
buildContentNavigationUrls()
a structured array of links usually used for the tabs in a skin
Definition SkinApi.php:62
setupSkinUserCss(OutputPage $out)
Add specific styles for this skin.
Definition SkinApi.php:35
Base class for template-based skins.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
Definition hooks.txt:864