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();
72 $vals[
'blockedtimestampformatted'] = $language->
formatExpiry(
75 if ( $expiry !==
'infinite' ) {
77 $expiry,
true,
'infinity', $user
85 $vals[
'systemblocktype'] = $block->getSystemBlockType();
90 foreach ( $block->getOriginalBlocks() as $singleBlock ) {
91 $components[] = $this->
getBlockDetails( $singleBlock, $language, $user );
93 $vals[
'blockcomponents'] = $components;
106 return 'autoblocked';
wfTimestamp( $outputtype=TS::UNIX, $ts=0)
Get a timestamp string in one of various formats.
if(!defined('MW_SETUP_CALLBACK'))