Manual:Skin.php/bg

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:Skin.php and the translation is 30% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎polski • ‎português • ‎português do Brasil • ‎български • ‎русский • ‎سنڌي • ‎中文 • ‎日本語 • ‎한국어

Детайли

Encapsulates a "look and feel" for the wiki. All of the functions that render HTML or make choices on how to render HTML are here. They are called from various other places when needed.

The skin being used can be extracted from the nearest RequestContext. Before 1.18 $wgUser ->getSkin() was used to get the skin object.

Modern skins extend the SkinTemplate class, which in turn extends the Skin class.

Функции

  • 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.

Вижте също