매뉴얼:Skin.php

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

설명

위키를 보고 느끼는 것을 요악합니다. HTML을 렌더링하고, HTML을 렌더링할 수 있는 방법을 선택할 수 있는 모든 기능이 여기에 있습니다. 이 기능들은 필요할 때 다른 곳에서 호출할 수 있습니다.

스킨은 가까운 RequestContext로부터 추출될 수 있습니다. 미디어위키 1.18 이전 버전에서는 $wgUser ->getSkin()가 스킨 오브젝트를 얻는 데 사용되었습니다.

현대적인 스킨은 SkinTemplate 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.

같이 보기