|
@@ 783-790 (lines=8) @@
|
| 780 |
|
$icalEnd = new LibCaldav_iCalDate($period->getProperty('DTEND')); |
| 781 |
|
$icalDuration = $icalStart->DateDifference($icalEnd); |
| 782 |
|
|
| 783 |
|
if ($period->getProperty('RDATE') !== '') { |
| 784 |
|
$rdates = $this->explodeRules($period->getProperty('RDATE')); |
| 785 |
|
foreach ($rdates as $rdate) { |
| 786 |
|
if ($rdate >= $expandStart && $rdate < $expandEnd) { |
| 787 |
|
$recurrenceDates[$rdate] = $rdate; |
| 788 |
|
} |
| 789 |
|
} |
| 790 |
|
} |
| 791 |
|
|
| 792 |
|
if ($period->getProperty('RRULE') !== '') { |
| 793 |
|
$rrule = new RRule($icalStart, $period->getProperty('RRULE')); |
|
@@ 806-813 (lines=8) @@
|
| 803 |
|
// Now we use EXDATE and EXRULE parameters to determine a list |
| 804 |
|
// of date excluded from the recurrence rule. |
| 805 |
|
|
| 806 |
|
if ($period->getProperty('EXDATE') !== '') { |
| 807 |
|
$exdates = $this->explodeRules($period->getProperty('EXDATE')); |
| 808 |
|
foreach ($exdates as $exdate) { |
| 809 |
|
if ($exdate >= $expandStart && $exdate < $expandEnd) { |
| 810 |
|
unset($recurrenceDates[$exdate]); |
| 811 |
|
} |
| 812 |
|
} |
| 813 |
|
} |
| 814 |
|
|
| 815 |
|
if ($period->getProperty('EXRULE') !== '') { |
| 816 |
|
$exrule = new RRule($icalStart, $period->getProperty('EXRULE')); |