43 private function getBlockDetails(
47 if ( $language ===
null ) {
48 $language = $this->getLanguage();
54 $vals[
'blockid'] = $block->
getId();
55 $vals[
'blockedby'] = $blocker ? $blocker->getName() :
'';
56 $vals[
'blockedbyid'] = $blocker ? $blocker->getId() : 0;
58 ->message->inLanguage( $language )->plain();
60 $vals[
'blockexpiry'] = ApiResult::formatExpiry( $block->
getExpiry(),
'infinite' );
66 $vals[
'systemblocktype'] = $block->getSystemBlockType();
81 abstract public function getLanguage();
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.