MediaWiki REL1_35
GetRelativeTimestampHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
5use DateInterval;
6use Language;
8use User;
9
29 public function onGetRelativeTimestamp( &$output, &$diff, $timestamp,
30 $relativeTo, $user, $lang
31 );
32}
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition Language.php:41
Library for creating and parsing MW-style timestamps.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:60
onGetRelativeTimestamp(&$output, &$diff, $timestamp, $relativeTo, $user, $lang)
Use this hook to pre-emptively override the relative timestamp generated by MWTimestamp::getRelativeT...
if(!isset( $args[0])) $lang