MediaWiki
master
GetRelativeTimestampHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use DateInterval;
6
use
MediaWiki\Language\Language
;
7
use
MediaWiki\User\User
;
8
use
MediaWiki\Utils\MWTimestamp
;
9
17
interface
GetRelativeTimestampHook
{
32
public
function
onGetRelativeTimestamp
( &$output, &$diff, $timestamp,
33
$relativeTo, $user, $lang
34
);
35
}
MediaWiki\Language\Language
Base class for language-specific code.
Definition
Language.php:81
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\GetRelativeTimestampHook
This is a hook handler interface, see docs/Hooks.md.
Definition
GetRelativeTimestampHook.php:17
MediaWiki\Hook\GetRelativeTimestampHook\onGetRelativeTimestamp
onGetRelativeTimestamp(&$output, &$diff, $timestamp, $relativeTo, $user, $lang)
Use this hook to pre-emptively override the relative timestamp generated by MWTimestamp::getRelativeT...
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
includes
Hook
GetRelativeTimestampHook.php
Generated on Mon Dec 30 2024 13:23:56 for MediaWiki by
1.10.0