Index: trunk/extensions/UserDailyContribs/api/ApiUserDailyContribs.php |
— | — | @@ -16,14 +16,14 @@ |
17 | 17 | $now = time(); |
18 | 18 | $result->addValue( $this->getModuleName() , |
19 | 19 | 'id', $user->getId() ); |
20 | | - // returns YYYYMMDDHHMMSS format |
| 20 | + // returns date of registration in YYYYMMDDHHMMSS format |
21 | 21 | $result->addValue( $this->getModuleName() , |
22 | 22 | 'registration', ($user->getRegistration() == NULL)?'0':$user->getRegistration() ); |
| 23 | + // returns number of edits since daysago param |
23 | 24 | $result->addValue( $this->getModuleName() , |
24 | 25 | 'timeFrameEdits', getUserEditCountSince( $now - ($days * 60 *60 *24), $user ) ); |
| 26 | + // returns total number of edits |
25 | 27 | $result->addValue( $this->getModuleName() , |
26 | | - 'pastYearEdits', getUserEditCountSince( $now - (365 * 60 *60 *24), $user ) ); |
27 | | - $result->addValue( $this->getModuleName() , |
28 | 28 | 'totalEdits', ($user->getEditCount() == NULL)?0:$user->getEditCount() ); |
29 | 29 | } |
30 | 30 | |