MediaWiki master
MediaWiki\Skin\SkinComponentLastModified Class Reference

Inherits MediaWiki\Skin\SkinComponent.

Collaboration diagram for MediaWiki\Skin\SkinComponentLastModified:

Public Member Functions

 __construct (SkinComponentRegistryContext $skinContext, $revisionTimestamp=null)
 getTemplateData ()
 Get the timestamp of the latest revision, formatted in user language.

Detailed Description

Definition at line 10 of file SkinComponentLastModified.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Skin\SkinComponentLastModified::__construct ( SkinComponentRegistryContext $skinContext,
$revisionTimestamp = null )
string | null | false$revisionTimestamp

Definition at line 24 of file SkinComponentLastModified.php.

References MediaWiki\Skin\SkinComponentRegistryContext\getLanguage(), MediaWiki\Skin\SkinComponentRegistryContext\getMessageLocalizer(), and MediaWiki\Skin\SkinComponentRegistryContext\getUser().

Member Function Documentation

◆ getTemplateData()

MediaWiki\Skin\SkinComponentLastModified::getTemplateData ( )

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

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.

array Data related to component required to render.

Implements MediaWiki\Skin\SkinComponent.

Definition at line 36 of file SkinComponentLastModified.php.

References MessageLocalizer\msg(), Language\userDate(), and Language\userTime().

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