Manual:Skin.php

From mediawiki.org
This page is a translated version of the page Manual:Skin.php and the translation is 70% complete.

Detalles

Encapsula una "apariencia" para el wiki. Todas las funciones que presentan HTML o toman decisiones sobre cómo hacerlo se encuentran aquí; se llamará a estas funciones desde varios lugares externos según sea necesario.

La apariencia que se está usando puede extraerse de la RequestContext más cercana. Antes de MediaWiki 1.18 se usaba $wgUser ->getSkin() para obtener el objeto de la apariencia.

Las apariencias modernas extienden la clase SkinTemplate , que a su vez extiende la clase Skin.

Funciones

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

Véase también