Esempio n. 1
0
 static function getTodayEdit($userId)
 {
     $receive = RecordStatistics::getRecentPageEditCountOnWikiSiteFromUserId($userId, '', 'day');
     if ($receive->status == 'success') {
         $editNum = $receive->result;
     } else {
         $editNum = false;
     }
     return $editNum;
 }
Esempio n. 2
0
 static function getTodayEdit($userId)
 {
     $receive = RecordStatistics::getRecentPageEditCountOnWikiSiteFromUserId($userId, '', 'day');
     if ($receive->status == 'success') {
         $editNum = $receive->result;
     } else {
         throw new Exception("Error getTodayEdit/getRecentPageEditCountOnWikiSiteFromUserId Bad Request");
     }
     return $editNum;
 }