Manual:Skin.php
From MediaWiki.org
| MediaWiki File: Skin.php | |
|---|---|
| Location: | /includes/ |
| Source code: | HEAD |
| Classes: | Skin |
[edit] Details
Encapsulates a "look and feel" for the wiki. All of the functions that render HTML, and make choices about how to render it, are here, and called from various other places when needed.
The User object contains a reference to a skin (according to that user's preference), and so rather than having a global skin object we just rely on the global User and get the skin with $wgUser->getSkin().
[edit] Functions
- function outputPage called from function output in OutputPage.php. It calls function out in OutputPage.php a number of times, to send the HTML to the user: $mBodytext and HTML before and after it.
- function generateUserJs called from RawPage.php to generate the user specific JavaScript.
- function generateUserStylesheet called from RawPage.php to generate the user specific stylesheet.

