MediaWiki REL1_41
|
Inherits MediaWiki\Skin\SkinComponent.
Public Member Functions | |
__construct (SkinComponentRegistryContext $skinContext, $revisionTimestamp=null) | |
getTemplateData () | |
Get the timestamp of the latest revision, formatted in user language. | |
Definition at line 10 of file SkinComponentLastModified.php.
MediaWiki\Skin\SkinComponentLastModified::__construct | ( | SkinComponentRegistryContext | $skinContext, |
$revisionTimestamp = null ) |
SkinComponentRegistryContext | $skinContext | |
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().
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.
Implements MediaWiki\Skin\SkinComponent.
Definition at line 36 of file SkinComponentLastModified.php.
References MessageLocalizer\msg(), Language\userDate(), and Language\userTime().