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