Go to the documentation of this file.
27 trait ApiBlockInfoTrait {
43 $vals[
'blockid'] = $block->
getId();
45 $vals[
'blockedbyid'] = $block->
getBy();
46 $vals[
'blockreason'] = $block->
getReason();
51 $vals[
'systemblocktype'] = $block->getSystemBlockType();
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
static formatExpiry( $expiry, $infinity='infinity')
Format an expiry timestamp for API output.