MediaWiki  1.27.4
SkinFallbackTemplate Class Reference

BaseTemplate class for the fallback skin. More...

Inheritance diagram for SkinFallbackTemplate:
Collaboration diagram for SkinFallbackTemplate:

Public Member Functions

 execute ()
 Outputs the entire contents of the page. More...
 
- Public Member Functions inherited from BaseTemplate
 getFooterIcons ($option=null)
 Returns an array of footer icons filtered down by options relevant to how the skin wishes to display them. More...
 
 getFooterLinks ($option=null)
 Returns an array of footerlinks trimmed down to only those footer links that are valid. More...
 
 getIndicators ()
 Get the suggested HTML for page status indicators: icons (or short text snippets) usually displayed in the top-right corner of the page, outside of the main content. More...
 
 getMsg ($name)
 Get a Message object with its context set. More...
 
 getPersonalTools ()
 Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate. More...
 
 getSidebar ($options=[])
 
 getToolbox ()
 Create an array of common toolbox items from the data in the quicktemplate stored by SkinTemplate. More...
 
 makeLink ($key, $item, $options=[])
 Makes a link, usually used by makeListItem to generate a link for an item in a list used in navigation lists, portlets, portals, sidebars, etc... More...
 
 makeListItem ($key, $item, $options=[])
 Generates a list item for a navigation, portlet, portal, sidebar... More...
 
 makeSearchButton ($mode, $attrs=[])
 
 makeSearchInput ($attrs=[])
 
 msg ($str)
 
 msgHtml ($str)
 
 msgWiki ($str)
 
 printTrail ()
 Output the basic end-page trail including bottomscripts, reporttime, and debug stuff. More...
 
- Public Member Functions inherited from QuickTemplate
 __construct (Config $config=null)
 
 execute ()
 Main function, used by classes that subclass QuickTemplate to show the actual HTML output. More...
 
 extend ($name, $value)
 extends the value of data with name $name with the value $value More...
 
 get ($name, $default=null)
 Gets the template data requested. More...
 
 getHTML ()
 Fetch the output of a QuickTemplate and return it. More...
 
 getSkin ()
 Get the Skin object related to this object. More...
 
 haveData ($str)
 
 haveMsg ($str)
 
 html ($str)
 
 msg ($str)
 
 msgHtml ($str)
 
 msgWiki ($str)
 An ugly, ugly hack. More...
 
 set ($name, $value)
 Sets the value $value to $name. More...
 
 setRef ($name, &$value)
 
 setTranslator (&$t)
 
 text ($str)
 

Private Member Functions

 buildHelpfulInformationMessage ()
 Inform the user why they are seeing this skin. More...
 
 findInstalledSkins ()
 
 getSnippetForSkin ($skin)
 Get the appropriate LocalSettings.php snippet to enable the given skin. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BaseTemplate
 renderAfterPortlet ($name)
 
- Protected Attributes inherited from QuickTemplate
 $config
 

Detailed Description

BaseTemplate class for the fallback skin.

Definition at line 15 of file SkinFallbackTemplate.php.

Member Function Documentation

SkinFallbackTemplate::buildHelpfulInformationMessage ( )
private

Inform the user why they are seeing this skin.

Returns
string

Definition at line 42 of file SkinFallbackTemplate.php.

References $skin, as, findInstalledSkins(), SkinFactory\getDefaultInstance(), BaseTemplate\getMsg(), and getSnippetForSkin().

Referenced by execute().

SkinFallbackTemplate::execute ( )

Outputs the entire contents of the page.

No navigation (other than search box), just the big warning message and page content.

Definition at line 98 of file SkinFallbackTemplate.php.

References action, buildHelpfulInformationMessage(), form, QuickTemplate\html(), label, BaseTemplate\makeSearchButton(), BaseTemplate\makeSearchInput(), BaseTemplate\msg(), name, php, BaseTemplate\printTrail(), and type.

SkinFallbackTemplate::findInstalledSkins ( )
private
Returns
array

Definition at line 19 of file SkinFallbackTemplate.php.

References use.

Referenced by buildHelpfulInformationMessage().

SkinFallbackTemplate::getSnippetForSkin (   $skin)
private

Get the appropriate LocalSettings.php snippet to enable the given skin.

Parameters
string$skin
Returns
string

Definition at line 85 of file SkinFallbackTemplate.php.

References $IP, and global.

Referenced by buildHelpfulInformationMessage().


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