MediaWiki
master
GetHumanTimestampHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use
Language
;
6
use
MWTimestamp
;
7
use
User
;
8
16
interface
GetHumanTimestampHook
{
31
public
function
onGetHumanTimestamp
( &$output, $timestamp, $relativeTo, $user,
32
$lang
33
);
34
}
MWTimestamp
Library for creating and parsing MW-style timestamps.
Definition:
MWTimestamp.php:37
MediaWiki\Hook
Definition:
ActionBeforeFormDisplayHook.php:3
$lang
if(!isset( $args[0])) $lang
Definition:
testCompression.php:37
MediaWiki\Hook\GetHumanTimestampHook\onGetHumanTimestamp
onGetHumanTimestamp(&$output, $timestamp, $relativeTo, $user, $lang)
Use this hook to preemptively override the human-readable timestamp generated by MWTimestamp::getHuma...
MediaWiki\Hook\GetHumanTimestampHook
This is a hook handler interface, see docs/Hooks.md.
Definition:
GetHumanTimestampHook.php:16
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition:
User.php:66
Language
Internationalisation code See https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation for more...
Definition:
Language.php:43
includes
language
Hook
GetHumanTimestampHook.php
Generated on Sat Mar 20 2021 18:08:48 for MediaWiki by
1.8.19