|
@@ 215-223 (lines=9) @@
|
| 212 |
|
|
| 213 |
|
// Now fill in hour data coming from the database which the mock event did *not* cater for |
| 214 |
|
// but the mock event |
| 215 |
|
foreach ($db_events[$unit][BAT_HOUR] as $year => $months) { |
| 216 |
|
foreach ($months as $month => $days) { |
| 217 |
|
foreach ($days as $day => $hours) { |
| 218 |
|
foreach ($hours as $hour => $value) { |
| 219 |
|
$events[$unit][BAT_HOUR][$year][$month]['d'.$day][$hour] = ((int)$value == 0 ? $keyed_units[$unit]->getDefaultValue() : (int)$value); |
| 220 |
|
} |
| 221 |
|
} |
| 222 |
|
} |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
// Fill in minute data coming from the database for our event that is represented |
| 226 |
|
// in the mock event |
|
@@ 247-255 (lines=9) @@
|
| 244 |
|
|
| 245 |
|
// Now fill in minute data coming from the database which the mock event did *not* cater for |
| 246 |
|
foreach ($db_events[$unit][BAT_MINUTE] as $year => $months) { |
| 247 |
|
foreach ($months as $month => $days) { |
| 248 |
|
foreach ($days as $day => $hours) { |
| 249 |
|
foreach ($hours as $hour => $minutes) { |
| 250 |
|
foreach ($minutes as $minute => $value) { |
| 251 |
|
$events[$unit][BAT_MINUTE][$year][$month]['d'.$day]['h'.$hour][$minute] = ((int)$value == 0 ? $keyed_units[$unit]->getDefaultValue() : (int)$value); |
| 252 |
|
} |
| 253 |
|
} |
| 254 |
|
} |
| 255 |
|
} |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
} |