MediaWiki REL1_35
GetHumanTimestampHook.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Hook;
4
5use Language;
7use User;
8
28 public function onGetHumanTimestamp( &$output, $timestamp, $relativeTo, $user,
29 $lang
30 );
31}
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
onGetHumanTimestamp(&$output, $timestamp, $relativeTo, $user, $lang)
Use this hook to preemptively override the human-readable timestamp generated by MWTimestamp::getHuma...
if(!isset( $args[0])) $lang