Index: trunk/extensions/Contest/includes/ContestDBObject.php |
— | — | @@ -332,7 +332,7 @@ |
333 | 333 | } |
334 | 334 | |
335 | 335 | /** |
336 | | - * Return the names of the fields. |
| 336 | + * Return the names and values of the fields. |
337 | 337 | * |
338 | 338 | * @since 0.1 |
339 | 339 | * |
Index: trunk/extensions/Contest/includes/ContestReminderJob.php |
— | — | @@ -44,5 +44,20 @@ |
45 | 45 | |
46 | 46 | return true; |
47 | 47 | } |
| 48 | + |
| 49 | + function toString() { |
| 50 | + $stringContestants = array(); |
| 51 | + |
| 52 | + /** |
| 53 | + * @var $contestant ContestContestant |
| 54 | + */ |
| 55 | + foreach ( $this->params['contestants'] as /* ContestContestant */ $contestant ) { |
| 56 | + $stringContestants[] = FormatJson::encode( $contestant->getFields() ); |
| 57 | + } |
| 58 | + |
| 59 | + return 'Contest reminder email for contest ' |
| 60 | + . $this->params['contest']->getId() |
| 61 | + . ' for these ' . count( $this->params['contestants'] ) . ' contestants: ' . implode( ', ', $stringContestants ) . '.'; |
| 62 | + } |
48 | 63 | |
49 | 64 | } |