MediaWiki  REL1_19
Skin Class Reference

The main skin class that provide methods and properties for all other skins. More...

Inheritance diagram for Skin:
Collaboration diagram for Skin:

List of all members.

Public Member Functions

 __call ($fname, $args)
 Use PHP's magic __call handler to intercept legacy calls to the linker for backwards compatibility.
 aboutLink ()
 Gets the link to the wiki's about page.
 addToBodyAttributes ($out, &$bodyAttrs)
 This will be called by OutputPage::headElement when it is creating the <body> tag, skins can override it if they have a need to add in any body attributes or classes of their own.
 addToSidebar (&$bar, $message)
 Add content from a sidebar system message Currently only used for MediaWiki:Sidebar (but may be used by Extensions)
 addToSidebarPlain (&$bar, $text)
 Add content from plain text.
 bottomScripts ()
 This gets called shortly before the </body> tag.
 buildSidebar ()
 Build an array that represents the sidebar(s), the navigation bar among them.
 commonPrintStylesheet ()
 Should we load mediawiki.legacy.wikiprintable? Skins that have their own print stylesheet should override this and return false.
 disclaimerLink ()
 Gets the link to the wiki's general disclaimers page.
 doEditSectionLink (Title $nt, $section, $tooltip=null, $lang=false)
 Create a section edit link.
 drawCategoryBrowser ($tree)
 Render the array as a serie of links.
 editUrlOptions ()
 Return URL options for the 'edit page' link.
 escapeSearchLink ()
 footerLink ($desc, $page)
 getCategories ()
 getCategoryLinks ()
 getCommonStylePath ($name)
 Return a fully resolved style path url to images or styles stored in the common folder.
 getCopyright ($type= 'detect')
 getCopyrightIcon ()
 getLogo ()
 URL to the logo.
 getNamespaceNotice ()
 Get a notice based on page's namespace.
 getNewtalks ()
 Gets new talk page messages for the current user.
 getPageClasses ($title)
 TODO: document.
 getPoweredBy ()
 Gets the powered by MediaWiki icon.
 getRelevantTitle ()
 Return the "relevant" title.
 getRelevantUser ()
 Return the "relevant" user.
 getRevisionId ()
 Get the current revision ID.
 getSearchLink ()
 getSiteNotice ()
 Get the site notice.
 getSkinName ()
 getSkinStylePath ($name)
 Return a fully resolved style path url to images or styles stored in the curent skins's folder.
 getUndeleteLink ()
 initPage (OutputPage $out)
 isRevisionCurrent ()
 Whether the revision displayed is the latest revision of the page.
 logoText ($align= '')
 mainPageLink ()
 Gets the link to the wiki's main page.
 makeFooterIcon ($icon, $withImage= 'withImage')
 Renders a $wgFooterIcons icon acording to the method's arguments.
 outputPage (OutputPage $out=null)
 Outputs the HTML generated by other functions.
 preloadExistence ()
 Preload the existence of three commonly-requested pages in a single query.
 printSource ()
 Text with the permalink to the source page, usually shown on the footer of a printed page.
 privacyLink ()
 Gets the link to the wiki's privacy policy page.
 setRelevantTitle ($t)
 Set the "relevant" title.
 setRelevantUser ($u)
 Set the "relevant" user.
 setupSkinUserCss (OutputPage $out)
 Add skin specific stylesheets Calling this method with an $out of anything but the same OutputPage inside ->getOutput() is deprecated.
 showEmailUser ($id)
 showIPinHeader ()
 Returns true if the IP should be shown in the header.
 subPageSubtitle ()

Static Public Member Functions

static checkTitle (&$title, $name)
 make sure we have some title to operate on
static getDynamicStylesheetQuery ()
 Get the query to generate a dynamic stylesheet.
static getSkinNameMessages ()
 Fetch the skinname messages for available skins.
static getSkinNames ()
 Fetch the set of available skins.
static getUsableSkins ()
 Fetch the list of usable skins in regards to $wgSkipSkins.
static makeGlobalVariablesScript ($unused)
 Make a <script> tag containing global variables.
static makeI18nUrl ($name, $urlaction= '')
static makeInternalOrExternalUrl ($name)
 If url string starts with http, consider as external URL, else internal.
static makeKnownUrlDetails ($name, $urlaction= '')
 Make URL details where the article exists (or at least it's convenient to think so)
static makeMainPageUrl ($urlaction= '')
static makeNSUrl ($name, $urlaction= '', $namespace=NS_MAIN)
 this can be passed the NS number as defined in Language.php
static makeSpecialUrl ($name, $urlaction= '')
static makeSpecialUrlSubpage ($name, $subpage, $urlaction= '')
static makeUrl ($name, $urlaction= '')
static makeUrlDetails ($name, $urlaction= '')
 these return an array with the 'href' and boolean 'exists'
static makeVariablesScript ($data)
static & newFromKey ($key)
 Factory method for loading a skin of a given type.
static normalizeKey ($key)
 Normalize a skin preference value to a form that can be loaded.

Protected Member Functions

 afterContentHook ()
 This runs a hook to allow extensions placing their stuff after content and article metadata (e.g.
 generateDebugHTML ()
 Generate debug data HTML for displaying at the bottom of the main content area.
 lastModified ()
 Get the timestamp of the latest revision, formatted in user language.

Protected Attributes

 $mRelevantTitle = null
 $mRelevantUser = null
 $skinname = 'standard'

Private Member Functions

 formatDebugHTML ($debugText)
 getCachedNotice ($name)
 Get a cached notice.

Detailed Description

The main skin class that provide methods and properties for all other skins.

This base class is also the "Standard" skin.

See docs/skin.txt for more information.

Definition at line 18 of file Skin.php.


Member Function Documentation

Skin::__call ( fname,
args 
)

Use PHP's magic __call handler to intercept legacy calls to the linker for backwards compatibility.

Parameters:
$fnameString Name of called method
$argsArray Arguments to the method

Definition at line 1544 of file Skin.php.

References $fname.

Gets the link to the wiki's about page.

Returns:
String HTML

Definition at line 976 of file Skin.php.

References footerLink().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::addToBodyAttributes ( out,
&$  bodyAttrs 
)

This will be called by OutputPage::headElement when it is creating the <body> tag, skins can override it if they have a need to add in any body attributes or classes of their own.

Parameters:
$outOutputPage
$bodyAttrsArray

Definition at line 393 of file Skin.php.

Referenced by OutputPage\headElement().

Here is the caller graph for this function:

Skin::addToSidebar ( &$  bar,
message 
)

Add content from a sidebar system message Currently only used for MediaWiki:Sidebar (but may be used by Extensions)

This is just a wrapper around addToSidebarPlain() for backwards compatibility

Parameters:
$bararray
$messageString

Definition at line 1214 of file Skin.php.

References addToSidebarPlain(), and wfMsgForContentNoTrans().

Referenced by buildSidebar().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::addToSidebarPlain ( &$  bar,
text 
)

Add content from plain text.

Since:
1.17
Parameters:
$bararray
$textstring
Returns:
Array

Definition at line 1225 of file Skin.php.

References $lines, $title, $wgExternalLinkTarget, $wgNoFollowDomainExceptions, $wgNoFollowLinks, Sanitizer\escapeId(), ContextSource\getTitle(), ContextSource\msg(), Title\newFromText(), MessageCache\singleton(), wfMatchesDomainList(), and wfUrlProtocols().

Referenced by addToSidebar().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::afterContentHook ( ) [protected]

This runs a hook to allow extensions placing their stuff after content and article metadata (e.g.

categories). Note: This function has nothing to do with afterContent().

This hook is placed here in order to allow using the same hook for all skins, both the SkinTemplate based ones and the older ones, which directly use this class to get their data.

The output of this function gets processed in SkinTemplate::outputPage() for the SkinTemplate based skins, all other skins should directly echo it.

Returns:
String, empty by default, if not changed by any hook function.

Definition at line 532 of file Skin.php.

References wfDebug(), and wfRunHooks().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

This gets called shortly before the </body> tag.

Returns:
String HTML-wrapped JS code to be put before </body>

Definition at line 631 of file Skin.php.

References ContextSource\getOutput(), and wfRunHooks().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Build an array that represents the sidebar(s), the navigation bar among them.

Returns:
array

Definition at line 1180 of file Skin.php.

References $wgEnableSidebarCache, $wgMemc, $wgSidebarCacheExpiry, addToSidebar(), ContextSource\getLanguage(), wfMemcKey(), wfProfileIn(), wfProfileOut(), and wfRunHooks().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::checkTitle ( &$  title,
name 
) [static]

make sure we have some title to operate on

Parameters:
$titleTitle
$namestring

Definition at line 1166 of file Skin.php.

References $title, and Title\newFromText().

Referenced by SkinTemplate\makeArticleUrlDetails(), makeI18nUrl(), makeKnownUrlDetails(), makeMainPageUrl(), makeNSUrl(), SkinTemplate\makeTalkUrlDetails(), makeUrl(), and makeUrlDetails().

Here is the call graph for this function:

Here is the caller graph for this function:

Should we load mediawiki.legacy.wikiprintable? Skins that have their own print stylesheet should override this and return false.

(This is an ugly hack to get Monobook to play nicely with OutputPage::headElement().)

Returns:
bool

Reimplemented in SkinTemplate, and SkinLegacy.

Definition at line 1317 of file Skin.php.

Referenced by OutputPage\headElement().

Here is the caller graph for this function:

Gets the link to the wiki's general disclaimers page.

Returns:
String HTML

Definition at line 984 of file Skin.php.

References footerLink().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::doEditSectionLink ( Title nt,
section,
tooltip = null,
lang = false 
)

Create a section edit link.

This supersedes editSectionLink() and editSectionLinkForOther().

Parameters:
$ntTitle The title being linked to (may not be the same as $wgTitle, if the section is included from a template)
$sectionstring The designation of the section being pointed to, to be included in the link, like "&section=$section"
$tooltipstring The tooltip to use for the link: will be escaped and wrapped in the 'editsectionhint' message
$langstring Language code
Returns:
string HTML to use for edit link

Definition at line 1495 of file Skin.php.

References $result, $section, Sanitizer\decodeCharReferences(), Linker\link(), wfMsgExt(), and wfRunHooks().

Here is the call graph for this function:

Render the array as a serie of links.

Parameters:
$treeArray: categories tree returned by Title::getParentCategoryTree
Returns:
String separated by >, terminate with "\n"

Definition at line 476 of file Skin.php.

References Linker\link(), and Title\newFromText().

Referenced by getCategoryLinks().

Here is the call graph for this function:

Here is the caller graph for this function:

Return URL options for the 'edit page' link.

This may include an 'oldid' specifier, if the current page view is such.

Returns:
array
Access:
private

Definition at line 995 of file Skin.php.

References $options, getRevisionId(), and isRevisionCurrent().

Here is the call graph for this function:

Returns:
string

Definition at line 759 of file Skin.php.

References getSearchLink().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::footerLink ( desc,
page 
)
Parameters:
$desc
$page
Returns:
string

Definition at line 946 of file Skin.php.

References $page, $title, Linker\linkKnown(), ContextSource\msg(), and Title\newFromText().

Referenced by aboutLink(), disclaimerLink(), and privacyLink().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::formatDebugHTML ( debugText) [private]
Parameters:
$debugTextstring
Returns:
string

Definition at line 576 of file Skin.php.

References $lines, $matches, and $wgDebugTimestamps.

Referenced by generateDebugHTML().

Here is the caller graph for this function:

Skin::generateDebugHTML ( ) [protected]

Generate debug data HTML for displaying at the bottom of the main content area.

Returns:
String HTML containing debug data, if enabled (otherwise empty).

Definition at line 558 of file Skin.php.

References $wgShowDebug, formatDebugHTML(), ContextSource\getContext(), MWDebug\getDebugHTML(), and ContextSource\getOutput().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::getCachedNotice ( name) [private]

Get a cached notice.

Parameters:
$nameString: message name, or 'default' for $wgSiteNotice
Returns:
String: HTML fragment

Definition at line 1383 of file Skin.php.

References $parserMemc, $wgContLang, $wgRenderHashAppend, $wgSiteNotice, ContextSource\getOutput(), ContextSource\msg(), Html\rawElement(), wfMemcKey(), wfProfileIn(), and wfProfileOut().

Referenced by getNamespaceNotice(), and getSiteNotice().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string

Definition at line 499 of file Skin.php.

References $out, getCategoryLinks(), ContextSource\getOutput(), ContextSource\getTitle(), and ContextSource\getUser().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string

Definition at line 409 of file Skin.php.

References $out, $t, $wgUseCategoryBrowser, drawCategoryBrowser(), ContextSource\getOutput(), ContextSource\getTitle(), ContextSource\getUser(), Linker\link(), ContextSource\msg(), Title\newFromText(), and wfMessage().

Referenced by getCategories().

Here is the call graph for this function:

Here is the caller graph for this function:

Return a fully resolved style path url to images or styles stored in the common folder.

This method returns a url resolved using the configured skin style path and includes the style version inside of the url.

Parameters:
$nameString: The name or path of a skin resource file
Returns:
String The fully resolved style path url including styleversion

Definition at line 1026 of file Skin.php.

References $wgStylePath, and $wgStyleVersion.

Skin::getCopyright ( type = 'detect')
Parameters:
$typestring
Returns:
string

Definition at line 767 of file Skin.php.

References $title, $wgContLang, $wgRightsPage, $wgRightsText, $wgRightsUrl, ContextSource\getLanguage(), ContextSource\getTitle(), isRevisionCurrent(), Linker\linkKnown(), Linker\makeExternalLink(), ContextSource\msg(), Title\newFromText(), Html\rawElement(), and wfRunHooks().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
null|string

Definition at line 816 of file Skin.php.

References $out, $url, $wgCopyrightIcon, $wgRightsIcon, $wgRightsText, and $wgRightsUrl.

Referenced by SkinTemplate\outputPage().

Here is the caller graph for this function:

static Skin::getDynamicStylesheetQuery ( ) [static]

Get the query to generate a dynamic stylesheet.

Returns:
array

Definition at line 336 of file Skin.php.

References $wgSquidMaxage.

Referenced by FileRepo\getDescriptionStylesheetUrl().

Here is the caller graph for this function:

URL to the logo.

Returns:
String

Definition at line 401 of file Skin.php.

References $wgLogo.

Referenced by logoText().

Here is the caller graph for this function:

Get a notice based on page's namespace.

Returns:
String: HTML fragment

Definition at line 1437 of file Skin.php.

References getCachedNotice(), ContextSource\getTitle(), wfProfileIn(), and wfProfileOut().

Here is the call graph for this function:

Gets new talk page messages for the current user.

Returns:
MediaWiki message or if no new talk page messages, nothing

Definition at line 1325 of file Skin.php.

References $out, Xml\element(), ContextSource\getOutput(), ContextSource\getUser(), Linker\linkKnown(), ContextSource\msg(), and wfWikiID().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::getPageClasses ( title)

TODO: document.

Parameters:
$titleTitle
Returns:
String

Definition at line 363 of file Skin.php.

References $title, Sanitizer\escapeClass(), and SpecialPageFactory\resolveAlias().

Referenced by OutputPage\headElement(), and SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the powered by MediaWiki icon.

Returns:
string

Definition at line 846 of file Skin.php.

References $url, $wgStylePath, and wfRunHooks().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Return the "relevant" title.

A "relevant" title is not necessarily the actual title of the page. Special pages like Special:MovePage use set the page they are acting on as their "relevant" title, this allows the skin system to display things such as content tabs which belong to to that page instead of displaying a basic special page tab which has almost no meaning.

Returns:
Title

Definition at line 252 of file Skin.php.

References ContextSource\getTitle().

Referenced by SkinTemplate\buildContentNavigationUrls(), and getRelevantUser().

Here is the call graph for this function:

Here is the caller graph for this function:

Return the "relevant" user.

A "relevant" user is similar to a relevant title. Special pages like Special:Contributions mark the user which they are relevant to so that things like the toolbox can display the information they usually are only able to display on a user's userpage and talkpage.

Returns:
User

Definition at line 276 of file Skin.php.

References $title, $user, getRelevantTitle(), User\isIP(), and User\newFromName().

Referenced by SkinTemplate\buildNavUrls().

Here is the call graph for this function:

Here is the caller graph for this function:

Get the current revision ID.

Returns:
Integer

Definition at line 219 of file Skin.php.

References ContextSource\getOutput().

Referenced by SkinTemplate\buildNavUrls(), editUrlOptions(), isRevisionCurrent(), lastModified(), and printSource().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
String

Definition at line 751 of file Skin.php.

References $searchPage, and SpecialPage\getTitleFor().

Referenced by escapeSearchLink().

Here is the call graph for this function:

Here is the caller graph for this function:

Get the site notice.

Returns:
String: HTML fragment

Definition at line 1457 of file Skin.php.

References getCachedNotice(), ContextSource\getUser(), wfProfileIn(), wfProfileOut(), and wfRunHooks().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns:
string skin name

Definition at line 176 of file Skin.php.

Referenced by OutputPage\headElement(), and SkinTemplate\outputPage().

Here is the caller graph for this function:

static Skin::getSkinNameMessages ( ) [static]

Fetch the skinname messages for available skins.

Returns:
array of strings

Definition at line 63 of file Skin.php.

References $messages.

static Skin::getSkinNames ( ) [static]

Fetch the set of available skins.

Returns:
associative array of strings

Definition at line 27 of file Skin.php.

References $file, $matches, $wgStyleDirectory, $wgValidSkinNames, wfProfileIn(), and wfProfileOut().

Referenced by ResourceLoaderContext\__construct(), ApiQuerySiteinfo\appendSkins(), ResourceLoaderStartUpModule\getConfig(), getUsableSkins(), EditPage\isWrongCaseCssJsPage(), newFromKey(), and normalizeKey().

Here is the call graph for this function:

Here is the caller graph for this function:

Return a fully resolved style path url to images or styles stored in the curent skins's folder.

This method returns a url resolved using the configured skin style path and includes the style version inside of the url.

Parameters:
$nameString: The name or path of a skin resource file
Returns:
String The fully resolved style path url including styleversion

Definition at line 1038 of file Skin.php.

References $wgStylePath, and $wgStyleVersion.

Returns:
String

Definition at line 661 of file Skin.php.

References $n, ContextSource\getRequest(), ContextSource\getTitle(), SpecialPage\getTitleFor(), ContextSource\getUser(), Linker\linkKnown(), and ContextSource\msg().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::getUsableSkins ( ) [static]

Fetch the list of usable skins in regards to $wgSkipSkins.

Useful for Special:Preferences and other places where you only want to show skins users _can_ use.

Returns:
array of strings

Definition at line 77 of file Skin.php.

References $wgSkipSkins, and getSkinNames().

Referenced by Preferences\generateSkinOptions().

Here is the call graph for this function:

Here is the caller graph for this function:

Parameters:
$outOutputPage

Reimplemented in SkinVector.

Definition at line 183 of file Skin.php.

References preloadExistence(), wfProfileIn(), and wfProfileOut().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Whether the revision displayed is the latest revision of the page.

Returns:
Boolean

Definition at line 228 of file Skin.php.

References getRevisionId(), and ContextSource\getTitle().

Referenced by SkinTemplate\buildContentNavigationUrls(), editUrlOptions(), getCopyright(), and SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::lastModified ( ) [protected]

Get the timestamp of the latest revision, formatted in user language.

Returns:
String

Definition at line 860 of file Skin.php.

References $t, ContextSource\getLanguage(), ContextSource\getOutput(), getRevisionId(), Revision\getTimestampFromId(), ContextSource\getTitle(), ContextSource\getUser(), ContextSource\msg(), and wfGetLB().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::logoText ( align = '')
Parameters:
$alignstring
Returns:
string

Definition at line 887 of file Skin.php.

References $url, getLogo(), ContextSource\msg(), and Title\newMainPage().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the link to the wiki's main page.

Returns:
string

Definition at line 932 of file Skin.php.

References Linker\linkKnown(), ContextSource\msg(), and Title\newMainPage().

Here is the call graph for this function:

Skin::makeFooterIcon ( icon,
withImage = 'withImage' 
)

Renders a $wgFooterIcons icon acording to the method's arguments.

Parameters:
$iconArray: The icon to build the html for, see $wgFooterIcons for the format of this array
$withImageBool|String: Whether to use the icon's image or output a text-only footericon
Returns:
String HTML

Definition at line 910 of file Skin.php.

References $url, Html\element(), and Html\rawElement().

Here is the call graph for this function:

static Skin::makeGlobalVariablesScript ( unused) [static]

Make a <script> tag containing global variables.

Deprecated:
in 1.19
Parameters:
$unusedUnused
Returns:
string HTML fragment

Definition at line 323 of file Skin.php.

References $wgOut, makeVariablesScript(), and wfDeprecated().

Here is the call graph for this function:

static Skin::makeI18nUrl ( name,
urlaction = '' 
) [static]
Parameters:
$namestring
$urlactionstring
Returns:
String

Definition at line 1082 of file Skin.php.

References $title, checkTitle(), Title\newFromText(), and wfMsgForContent().

Here is the call graph for this function:

static Skin::makeInternalOrExternalUrl ( name) [static]

If url string starts with http, consider as external URL, else internal.

Parameters:
$nameString
Returns:
String URL

Definition at line 1106 of file Skin.php.

References makeUrl(), and wfUrlProtocols().

Referenced by EditPage\showStandardInputs().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::makeKnownUrlDetails ( name,
urlaction = '' 
) [static]

Make URL details where the article exists (or at least it's convenient to think so)

Parameters:
$nameString Article name
$urlactionString
Returns:
Array

Definition at line 1150 of file Skin.php.

References $title, checkTitle(), and Title\newFromText().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::makeMainPageUrl ( urlaction = '') [static]
Parameters:
$urlactionstring
Returns:
String

Definition at line 1049 of file Skin.php.

References $title, checkTitle(), and Title\newMainPage().

Here is the call graph for this function:

static Skin::makeNSUrl ( name,
urlaction = '',
namespace = NS_MAIN 
) [static]

this can be passed the NS number as defined in Language.php

Parameters:
$name
$urlactionstring
$namespaceint
Returns:
String

Definition at line 1121 of file Skin.php.

References $title, checkTitle(), and Title\makeTitleSafe().

Here is the call graph for this function:

static Skin::makeSpecialUrl ( name,
urlaction = '' 
) [static]
Parameters:
$namestring
$urlactionstring
Returns:
String

Definition at line 1061 of file Skin.php.

References $title, and SpecialPage\getSafeTitleFor().

Referenced by SkinTemplate\buildPersonalUrls().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::makeSpecialUrlSubpage ( name,
subpage,
urlaction = '' 
) [static]
Parameters:
$namestring
$subpagestring
$urlactionstring
Returns:
String

Definition at line 1072 of file Skin.php.

References $title, and SpecialPage\getSafeTitleFor().

Referenced by SkinTemplate\buildPersonalUrls().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::makeUrl ( name,
urlaction = '' 
) [static]
Parameters:
$namestring
$urlactionstring
Returns:
String

Definition at line 1093 of file Skin.php.

References $title, checkTitle(), and Title\newFromText().

Referenced by makeInternalOrExternalUrl().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::makeUrlDetails ( name,
urlaction = '' 
) [static]

these return an array with the 'href' and boolean 'exists'

Parameters:
$name
$urlactionstring
Returns:
array

Definition at line 1134 of file Skin.php.

References $title, checkTitle(), and Title\newFromText().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::makeVariablesScript ( data) [static]
Parameters:
$dataarray
Returns:
string

Definition at line 306 of file Skin.php.

References Html\inlineScript(), ResourceLoader\makeConfigSetScript(), and ResourceLoader\makeLoaderConditionalScript().

Referenced by makeGlobalVariablesScript().

Here is the call graph for this function:

Here is the caller graph for this function:

static& Skin::newFromKey ( key) [static]

Factory method for loading a skin of a given type.

Parameters:
$keyString: 'monobook', 'standard', etc.
Returns:
Skin

Definition at line 137 of file Skin.php.

References $wgStyleDirectory, MWInit\classExists(), getSkinNames(), normalizeKey(), and wfDebug().

Referenced by RequestContext\getSkin().

Here is the call graph for this function:

Here is the caller graph for this function:

static Skin::normalizeKey ( key) [static]

Normalize a skin preference value to a form that can be loaded.

If a skin can't be found, it will fall back to the configured default (or the old 'Classic' skin if that's broken).

Parameters:
$keyString: 'monobook', 'standard', etc.
Returns:
string

Definition at line 96 of file Skin.php.

References $fallback, $wgDefaultSkin, and getSkinNames().

Referenced by newFromKey().

Here is the call graph for this function:

Here is the caller graph for this function:

Skin::outputPage ( OutputPage out = null) [abstract]

Outputs the HTML generated by other functions.

Parameters:
$outOutputPage

Reimplemented in SkinTemplate.

Preload the existence of three commonly-requested pages in a single query.

Definition at line 194 of file Skin.php.

References $lb, $user, ContextSource\getTitle(), and ContextSource\getUser().

Referenced by initPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Text with the permalink to the source page, usually shown on the footer of a printed page.

Returns:
string HTML text with an URL

Definition at line 647 of file Skin.php.

References $url, getRevisionId(), ContextSource\getTitle(), and ContextSource\msg().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Gets the link to the wiki's privacy policy page.

Returns:
String HTML

Definition at line 968 of file Skin.php.

References footerLink().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:

Set the "relevant" title.

See also:
self::getRelevantTitle()
Parameters:
$tTitle object to use

Definition at line 238 of file Skin.php.

References $t.

Set the "relevant" user.

See also:
self::getRelevantUser()
Parameters:
$uUser object to use

Definition at line 264 of file Skin.php.

Skin::setupSkinUserCss ( OutputPage out) [abstract]

Add skin specific stylesheets Calling this method with an $out of anything but the same OutputPage inside ->getOutput() is deprecated.

The $out arg is kept for compatibility purposes with skins.

Parameters:
$outOutputPage

Reimplemented in SkinTemplate, SkinVector, SkinMonoBook, SkinChick, SkinModern, SkinSimple, SkinCologneBlue, SkinNostalgia, SkinStandard, and SkinLegacy.

Parameters:
$idUser|int
Returns:
bool

Definition at line 1009 of file Skin.php.

References ContextSource\getUser(), and User\newFromId().

Referenced by SkinTemplate\buildNavUrls().

Here is the call graph for this function:

Here is the caller graph for this function:

Returns true if the IP should be shown in the header.

Returns:
Bool

Definition at line 743 of file Skin.php.

References $wgShowIPinHeader.

Referenced by SkinTemplate\buildPersonalUrls(), and SkinTemplate\outputPage().

Here is the caller graph for this function:

Returns:
string

Definition at line 690 of file Skin.php.

References $out, ContextSource\getOutput(), ContextSource\getTitle(), MWNamespace\hasSubpages(), Linker\linkKnown(), ContextSource\msg(), Title\newFromText(), and wfRunHooks().

Referenced by SkinTemplate\outputPage().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Skin::$mRelevantTitle = null [protected]

Definition at line 20 of file Skin.php.

Skin::$mRelevantUser = null [protected]

Definition at line 21 of file Skin.php.

Skin::$skinname = 'standard' [protected]

The documentation for this class was generated from the following file: