Index: trunk/extensions/ContributionReporting/FundraiserStatistics_body.php |
— | — | @@ -299,7 +299,7 @@ |
300 | 300 | 'max(converted_amount)', |
301 | 301 | ), |
302 | 302 | $conditions, |
303 | | - __METHOD__, |
| 303 | + __METHOD__ . '-dailyTotals', |
304 | 304 | array( |
305 | 305 | 'ORDER BY' => 'received', |
306 | 306 | 'GROUP BY' => "DATE_FORMAT(CONVERT_TZ(FROM_UNIXTIME(received),'+00:00','$this->timezone'),'%Y-%m-%d')" |
— | — | @@ -316,7 +316,7 @@ |
317 | 317 | $result = $dbr->selectField( 'public_reporting', |
318 | 318 | array( 'sum(converted_amount) as sum' ), |
319 | 319 | $conditions, |
320 | | - __METHOD__, |
| 320 | + __METHOD__ . '-dailyTotalMax', |
321 | 321 | array( |
322 | 322 | 'ORDER BY' => 'sum DESC', |
323 | 323 | 'GROUP BY' => "DATE_FORMAT(CONVERT_TZ(FROM_UNIXTIME(received),'+00:00','$this->timezone'),'%Y-%m-%d')" |
— | — | @@ -327,14 +327,14 @@ |
328 | 328 | $result = $dbr->selectField( 'public_reporting', |
329 | 329 | array( 'sum(converted_amount) as sum' ), |
330 | 330 | $conditions, |
331 | | - __METHOD__ |
| 331 | + __METHOD__ . '-yearlyTotalMax' |
332 | 332 | ); |
333 | 333 | break; |
334 | 334 | case 'contributionsMax': |
335 | 335 | $result = $dbr->selectField( 'public_reporting', |
336 | 336 | array( 'count(converted_amount) as sum' ), |
337 | 337 | $conditions, |
338 | | - __METHOD__, |
| 338 | + __METHOD__ . '-contributionsMax', |
339 | 339 | array( |
340 | 340 | 'ORDER BY' => 'sum DESC', |
341 | 341 | 'GROUP BY' => "DATE_FORMAT(CONVERT_TZ(FROM_UNIXTIME(received),'+00:00','$this->timezone'),'%Y-%m-%d')" |
— | — | @@ -345,7 +345,7 @@ |
346 | 346 | $result = $dbr->selectField( 'public_reporting', |
347 | 347 | array( 'avg(converted_amount) as sum' ), |
348 | 348 | $conditions, |
349 | | - __METHOD__, |
| 349 | + __METHOD__ . '-averagesMax', |
350 | 350 | array( |
351 | 351 | 'ORDER BY' => 'sum DESC', |
352 | 352 | 'GROUP BY' => "DATE_FORMAT(CONVERT_TZ(FROM_UNIXTIME(received),'+00:00','$this->timezone'),'%Y-%m-%d')" |
— | — | @@ -356,7 +356,7 @@ |
357 | 357 | $result = $dbr->selectField( 'public_reporting', |
358 | 358 | array( 'max(converted_amount) as sum' ), |
359 | 359 | $conditions, |
360 | | - __METHOD__, |
| 360 | + __METHOD__ . '-maximumsMax', |
361 | 361 | array( |
362 | 362 | 'ORDER BY' => 'sum DESC', |
363 | 363 | 'GROUP BY' => "DATE_FORMAT(CONVERT_TZ(FROM_UNIXTIME(received),'+00:00','$this->timezone'),'%Y-%m-%d')" |