예제 #1
0
 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;
 }
예제 #2
0
 public function formatParametersForApi()
 {
     $ret = parent::formatParametersForApi();
     if (isset($ret['flags'])) {
         ApiResult::setIndexedTagName($ret['flags'], 'f');
     }
     return $ret;
 }
예제 #3
0
 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;
 }