67 $vals[
'blockid'] = $block->
getId();
68 $vals[
'blockedby'] = $blocker ? $blocker->getName() :
'';
69 $vals[
'blockedbyid'] = $blocker ? $blocker->getId() : 0;
71 ->message->inLanguage( $language )->plain();
74 $vals[
'blockexpiry'] = $expiry;
79 $vals[
'blockemail'] = $block->isEmailBlocked();
80 $vals[
'blockowntalk'] = !$block->isUsertalkEditAllowed();
84 $vals[
'blockedtimestampformatted'] = $language->
formatExpiry(
87 if ( $expiry !==
'infinite' ) {
89 $expiry,
true,
'infinity', $user
97 $vals[
'systemblocktype'] = $block->getSystemBlockType();
102 foreach ( $block->getOriginalBlocks() as $singleBlock ) {
103 $components[] = $this->
getBlockDetails( $singleBlock, $language, $user );
105 $vals[
'blockcomponents'] = $components;
118 return 'autoblocked';
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
if(!defined('MW_SETUP_CALLBACK'))