MediaWiki
master
GetHumanTimestampHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
MediaWiki\Language\Language
;
6
use
MediaWiki\User\User
;
7
use
MediaWiki\Utils\MWTimestamp
;
8
16
interface
GetHumanTimestampHook
{
31
public
function
onGetHumanTimestamp
( &$output, $timestamp, $relativeTo, $user,
32
$lang
33
);
34
}
MediaWiki\Language\Language
Base class for language-specific code.
Definition
Language.php:78
MediaWiki\User\User
internal since 1.36
Definition
User.php:93
MediaWiki\Utils\MWTimestamp
Library for creating and parsing MW-style timestamps.
Definition
MWTimestamp.php:48
MediaWiki\Hook\GetHumanTimestampHook
This is a hook handler interface, see docs/Hooks.md.
Definition
GetHumanTimestampHook.php:16
MediaWiki\Hook\GetHumanTimestampHook\onGetHumanTimestamp
onGetHumanTimestamp(&$output, $timestamp, $relativeTo, $user, $lang)
Use this hook to preemptively override the human-readable timestamp generated by Language::getHumanTi...
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
language
Hook
GetHumanTimestampHook.php
Generated on Tue Sep 10 2024 04:23:52 for MediaWiki by
1.10.0