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:80
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 2 2024 16:24:15 for MediaWiki by
1.10.0