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