Index: trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php |
— | — | @@ -15,15 +15,16 @@ |
16 | 16 | |
17 | 17 | $now = time(); |
18 | 18 | $result->addValue( $this->getModuleName() , |
19 | | - 'totalEdits', |
20 | | - ($user->getEditCount() == NULL)?0:$user->getEditCount() ); |
21 | | - //returns YYYY-MM-DD-HH-MM-SS format |
22 | | - $result->addValue( $this->getModuleName() , |
23 | 19 | 'id', $user->getId() ); |
| 20 | + // returns YYYYMMDDHHMMSS format |
24 | 21 | $result->addValue( $this->getModuleName() , |
25 | 22 | 'registration', ($user->getRegistration() == NULL)?0:$user->getRegistration() ); |
26 | 23 | $result->addValue( $this->getModuleName() , |
27 | 24 | 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24), $user ) ); |
| 25 | + $result->addValue( $this->getModuleName() , |
| 26 | + 'pastYearEdits', getUserEditCountSince( $now - (365 * 60 *60 *24), $user ) ); |
| 27 | + $result->addValue( $this->getModuleName() , |
| 28 | + 'totalEdits', ($user->getEditCount() == NULL)?0:$user->getEditCount() ); |
28 | 29 | } |
29 | 30 | |
30 | 31 | public function getAllowedParams() { |