public function formatParametersForApi() { global $wgContLang; $ret = parent::formatParametersForApi(); if (isset($ret['details']) && is_array($ret['details'])) { foreach ($ret['details'] as &$detail) { if (isset($detail['expiry'])) { $detail['expiry'] = $wgContLang->formatExpiry($detail['expiry'], TS_ISO_8601, 'infinite'); } } } return $ret; }
public function formatParametersForApi() { $ret = parent::formatParametersForApi(); if (isset($ret['flags'])) { ApiResult::setIndexedTagName($ret['flags'], 'f'); } return $ret; }
public function formatParametersForApi() { $ret = parent::formatParametersForApi(); if (isset($ret['oldgroups'])) { ApiResult::setIndexedTagName($ret['oldgroups'], 'g'); } if (isset($ret['newgroups'])) { ApiResult::setIndexedTagName($ret['newgroups'], 'g'); } return $ret; }