17use Wikimedia\Timestamp\TimestampFormat as TS;
55 'blockid' => $block->
getId(),
56 'blockedby' => $blocker ? $blocker->getName() :
'',
57 'blockedbyid' => $blocker ? $blocker->getId() : 0,
58 'blockreason' => $block->
getReasonComment()->message->inLanguage( $language )->plain(),
60 'blockexpiry' => $expiry,
68 $vals[
'blockowntalk'] = !$block->isUsertalkEditAllowed();
71 $vals[
'blockautoblocking'] = $block->isAutoblocking();
75 $vals[
'blockedtimestampformatted'] = $language->
formatExpiry(
78 if ( $expiry !==
'infinite' ) {
80 $expiry,
true,
'infinity', $user
88 $vals[
'systemblocktype'] = $block->getSystemBlockType();
93 foreach ( $block->getOriginalBlocks() as $singleBlock ) {
94 $components[] = $this->
getBlockDetails( $singleBlock, $language, $user );
96 $vals[
'blockcomponents'] = $components;
109 return 'autoblocked';
wfTimestamp( $outputtype=TS::UNIX, $ts=0)
Get a timestamp string in one of various formats.
if(!defined('MW_SETUP_CALLBACK'))