|
@@ 578-580 (lines=3) @@
|
| 575 |
|
else { // alternatively it is the last day of the start month |
| 576 |
|
$dayrange = new \DatePeriod($this->start_date, $dayinterval, $this->endMonthDate($this->start_date)); |
| 577 |
|
} |
| 578 |
|
foreach ($dayrange as $day) { |
| 579 |
|
$itemized[AbstractEvent::BAT_DAY][$year][$day->format('n')]['d' . $day->format('j')] = $this->getValue(); |
| 580 |
|
} |
| 581 |
|
} |
| 582 |
|
|
| 583 |
|
// Handle the last month (will be skipped if event is same month) |
|
@@ 586-588 (lines=3) @@
|
| 583 |
|
// Handle the last month (will be skipped if event is same month) |
| 584 |
|
elseif ($this->isLastMonth($date)) { |
| 585 |
|
$dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, $this->end_date); |
| 586 |
|
foreach ($dayrange as $day) { |
| 587 |
|
$itemized[AbstractEvent::BAT_DAY][$year][$day->format('n')]['d' . $day->format('j')] = $this->getValue(); |
| 588 |
|
} |
| 589 |
|
} |
| 590 |
|
|
| 591 |
|
// We are in an in-between month - just cycle through and set dates (time on end date set to ensure it is included) |
|
@@ 594-596 (lines=3) @@
|
| 591 |
|
// We are in an in-between month - just cycle through and set dates (time on end date set to ensure it is included) |
| 592 |
|
else { |
| 593 |
|
$dayrange = new \DatePeriod(new \DateTime($date->format("Y-n-1")), $dayinterval, new \DateTime($date->format("Y-n-t 23:59:59"))); |
| 594 |
|
foreach ($dayrange as $day) { |
| 595 |
|
$itemized[AbstractEvent::BAT_DAY][$year][$day->format('n')]['d' . $day->format('j')] = $this->getValue(); |
| 596 |
|
} |
| 597 |
|
} |
| 598 |
|
} |
| 599 |
|
|