MediaWiki master
MediaWiki\Skin\Components\SkinComponentFooter Class Reference

Inherits MediaWiki\Skin\Components\SkinComponent.

Collaboration diagram for MediaWiki\Skin\Components\SkinComponentFooter:

Public Member Functions

 __construct (SkinComponentRegistryContext $skinContext)
 addItem (string $section, array $items)
 Add extra items to a footer section.
 getTemplateData ()
 This returns all the data that is needed to the component.Returned array must be serialized. This will be passed directly to a template (usually Mustache) for rendering.
Returns
array Data related to component required to render.

Static Public Member Functions

static getFooterIconsData (Config $config)
 Get data representation of icons.
static makeFooterIconHTML (Config $config, $icon, string $withImage='withImage')
 Renders a $wgFooterIcons icon according to the method's arguments.

Detailed Description

Definition at line 16 of file SkinComponentFooter.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skin\Components\SkinComponentFooter::__construct ( SkinComponentRegistryContext $skinContext)

Definition at line 34 of file SkinComponentFooter.php.

Member Function Documentation

◆ addItem()

MediaWiki\Skin\Components\SkinComponentFooter::addItem ( string $section,
array $items )

Add extra items to a footer section.

Used by SkinTemplate to pass items that were added via the SkinTemplateNavigation::Universal hook but need to appear in the footer for legacy skins (T426358).

Access: internal
for use by SkinTemplate only
Since
1.47
Parameters
string$sectionFooter section name ('info', 'places', or 'icons')
array$itemsAssociative array of item key => item data

Definition at line 50 of file SkinComponentFooter.php.

◆ getFooterIconsData()

MediaWiki\Skin\Components\SkinComponentFooter::getFooterIconsData ( Config $config)
static

Get data representation of icons.

Access: internal
for use in Skin only
Parameters
Config$config
Returns
array

Definition at line 309 of file SkinComponentFooter.php.

References MediaWiki\MainConfigNames\FooterIcons, and MediaWiki\Config\Config\get().

◆ getTemplateData()

MediaWiki\Skin\Components\SkinComponentFooter::getTemplateData ( )

This returns all the data that is needed to the component.Returned array must be serialized. This will be passed directly to a template (usually Mustache) for rendering.

Returns
array Data related to component required to render.

Implements MediaWiki\Skin\Components\SkinComponent.

Definition at line 96 of file SkinComponentFooter.php.

References if.

◆ makeFooterIconHTML()

MediaWiki\Skin\Components\SkinComponentFooter::makeFooterIconHTML ( Config $config,
$icon,
string $withImage = 'withImage' )
static

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

Parameters
Config$config
array | string$iconThe icon to build the html for, see $wgFooterIcons for the format of this array.
string$withImageWhether to use the icon's image or output a text-only footer icon.
Returns
string HTML
Access: internal
for use in Skin only

Definition at line 257 of file SkinComponentFooter.php.

References if.


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