MediaWiki
REL1_39
GetRelativeTimestampHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use DateInterval;
6
use
Language
;
7
use
MWTimestamp
;
8
use
User
;
9
17
interface
GetRelativeTimestampHook
{
32
public
function
onGetRelativeTimestamp
( &$output, &$diff, $timestamp,
33
$relativeTo, $user,
$lang
34
);
35
}
Language
Base class for language-specific code.
Definition
Language.php:53
MWTimestamp
Library for creating and parsing MW-style timestamps.
Definition
MWTimestamp.php:39
User
internal since 1.36
Definition
User.php:70
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
$lang
if(!isset( $args[0])) $lang
Definition
testCompression.php:37
includes
Hook
GetRelativeTimestampHook.php
Generated on Thu Nov 21 2024 05:22:57 for MediaWiki by
1.10.0