ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
RRuleParser. More...
Public Member Functions | |
__construct ($rrule, DateTimeInterface $start) | |
Creates the Iterator. More... | |
current () | |
key () | |
Returns the current item number. More... | |
valid () | |
Returns whether the current item is a valid item for the recurrence iterator. More... | |
rewind () | |
Resets the iterator. More... | |
next () | |
Goes on to the next iteration. More... | |
isInfinite () | |
Returns true if this recurring event never ends. More... | |
fastForward (DateTimeInterface $dt) | |
This method allows you to quickly go to the next occurrence after the specified date. More... | |
Protected Member Functions | |
nextHourly () | |
Does the processing for advancing the iterator for hourly frequency. More... | |
nextDaily () | |
Does the processing for advancing the iterator for daily frequency. More... | |
nextWeekly () | |
Does the processing for advancing the iterator for weekly frequency. More... | |
nextMonthly () | |
Does the processing for advancing the iterator for monthly frequency. More... | |
nextYearly () | |
Does the processing for advancing the iterator for yearly frequency. More... | |
parseRRule ($rrule) | |
This method receives a string from an RRULE property, and populates this class with all the values. More... | |
getMonthlyOccurrences () | |
Returns all the occurrences for a monthly frequency with a 'byDay' or 'byMonthDay' expansion for the current month. More... | |
getHours () | |
getDays () | |
getMonths () | |
Protected Attributes | |
$startDate | |
$currentDate | |
$frequency | |
$count | |
$interval = 1 | |
$until | |
$bySecond | |
$byMinute | |
$byHour | |
$counter = 0 | |
$byDay | |
$byMonthDay | |
$byYearDay | |
$byWeekNo | |
$byMonth | |
$bySetPos | |
$weekStart = 'MO' | |
$dayNames | |
$dayMap | |
RRuleParser.
This class receives an RRULE string, and allows you to iterate to get a list of dates in that recurrence.
For instance, passing: FREQ=DAILY;LIMIT=5 will cause the iterator to contain 5 items, one for each day.
Definition at line 25 of file RRuleIterator.php.
Sabre\VObject\Recur\RRuleIterator::__construct | ( | $rrule, | |
DateTimeInterface | $start | ||
) |
Creates the Iterator.
string | array | $rrule | |
DateTimeInterface | $start |
Definition at line 33 of file RRuleIterator.php.
References $start, Sabre\VObject\Recur\RRuleIterator\$startDate, and Sabre\VObject\Recur\RRuleIterator\parseRRule().
Sabre\VObject\Recur\RRuleIterator::current | ( | ) |
Definition at line 43 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$currentDate, and Sabre\VObject\Recur\RRuleIterator\valid().
Sabre\VObject\Recur\RRuleIterator::fastForward | ( | DateTimeInterface | $dt | ) |
This method allows you to quickly go to the next occurrence after the specified date.
DateTimeInterface | $dt |
Definition at line 146 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\next(), and Sabre\VObject\Recur\RRuleIterator\valid().
Referenced by Sabre\VObject\FreeBusyGenerator\calculateAvailability().
|
protected |
Definition at line 989 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$byDay.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextDaily(), and Sabre\VObject\Recur\RRuleIterator\nextWeekly().
|
protected |
Definition at line 979 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$byHour.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextDaily(), and Sabre\VObject\Recur\RRuleIterator\nextWeekly().
|
protected |
Returns all the occurrences for a monthly frequency with a 'byDay' or 'byMonthDay' expansion for the current month.
The returned list is an array of integers with the day of month (1-31).
Definition at line 855 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$currentDate, $result, and Sabre\VObject\Recur\RRuleIterator\$startDate.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextMonthly(), and Sabre\VObject\Recur\RRuleIterator\nextYearly().
|
protected |
Definition at line 1004 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$byMonth.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextDaily().
Sabre\VObject\Recur\RRuleIterator::isInfinite | ( | ) |
Returns true if this recurring event never ends.
Definition at line 132 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$until.
Sabre\VObject\Recur\RRuleIterator::key | ( | ) |
Returns the current item number.
Definition at line 55 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$counter.
Sabre\VObject\Recur\RRuleIterator::next | ( | ) |
Goes on to the next iteration.
Definition at line 94 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\nextDaily(), Sabre\VObject\Recur\RRuleIterator\nextHourly(), Sabre\VObject\Recur\RRuleIterator\nextMonthly(), Sabre\VObject\Recur\RRuleIterator\nextWeekly(), and Sabre\VObject\Recur\RRuleIterator\nextYearly().
Referenced by Sabre\VObject\Recur\RRuleIterator\fastForward().
|
protected |
Does the processing for advancing the iterator for daily frequency.
Definition at line 334 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\getDays(), Sabre\VObject\Recur\RRuleIterator\getHours(), and Sabre\VObject\Recur\RRuleIterator\getMonths().
Referenced by Sabre\VObject\Recur\RRuleIterator\next().
|
protected |
Does the processing for advancing the iterator for hourly frequency.
Definition at line 323 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\next().
|
protected |
Does the processing for advancing the iterator for monthly frequency.
Definition at line 441 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$currentDate, and Sabre\VObject\Recur\RRuleIterator\getMonthlyOccurrences().
Referenced by Sabre\VObject\Recur\RRuleIterator\next().
|
protected |
Does the processing for advancing the iterator for weekly frequency.
Definition at line 389 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$weekStart, Sabre\VObject\Recur\RRuleIterator\getDays(), and Sabre\VObject\Recur\RRuleIterator\getHours().
Referenced by Sabre\VObject\Recur\RRuleIterator\next().
|
protected |
Does the processing for advancing the iterator for yearly frequency.
Definition at line 507 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$byDay, Sabre\VObject\Recur\RRuleIterator\$byWeekNo, Sabre\VObject\Recur\RRuleIterator\$byYearDay, Sabre\VObject\Recur\RRuleIterator\$counter, Sabre\VObject\Recur\RRuleIterator\$currentDate, Sabre\VObject\Recur\RRuleIterator\$interval, and Sabre\VObject\Recur\RRuleIterator\getMonthlyOccurrences().
Referenced by Sabre\VObject\Recur\RRuleIterator\next().
|
protected |
This method receives a string from an RRULE property, and populates this class with all the values.
string | array | $rrule |
Definition at line 712 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$byMonth, Sabre\VObject\Recur\RRuleIterator\$byWeekNo, Sabre\VObject\Recur\RRuleIterator\$byYearDay, $key, Sabre\VObject\Recur\RRuleIterator\$startDate, Sabre\VObject\DateTimeParser\parse(), and Sabre\VObject\Property\ICalendar\Recur\stringToArray().
Referenced by Sabre\VObject\Recur\RRuleIterator\__construct().
Sabre\VObject\Recur\RRuleIterator::rewind | ( | ) |
Resets the iterator.
Definition at line 82 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$startDate.
Sabre\VObject\Recur\RRuleIterator::valid | ( | ) |
Returns whether the current item is a valid item for the recurrence iterator.
This will return false if we've gone beyond the UNTIL or COUNT statements.
Definition at line 68 of file RRuleIterator.php.
References Sabre\VObject\Recur\RRuleIterator\$count, and Sabre\VObject\Recur\RRuleIterator\$until.
Referenced by Sabre\VObject\Recur\RRuleIterator\current(), and Sabre\VObject\Recur\RRuleIterator\fastForward().
|
protected |
Definition at line 251 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\getDays(), and Sabre\VObject\Recur\RRuleIterator\nextYearly().
|
protected |
Definition at line 228 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\getHours().
|
protected |
Definition at line 219 of file RRuleIterator.php.
|
protected |
Definition at line 291 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\getMonths(), and Sabre\VObject\Recur\RRuleIterator\parseRRule().
|
protected |
Definition at line 261 of file RRuleIterator.php.
|
protected |
Definition at line 210 of file RRuleIterator.php.
|
protected |
Definition at line 307 of file RRuleIterator.php.
|
protected |
Definition at line 282 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextYearly(), and Sabre\VObject\Recur\RRuleIterator\parseRRule().
|
protected |
Definition at line 272 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextYearly(), and Sabre\VObject\Recur\RRuleIterator\parseRRule().
|
protected |
Definition at line 184 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\valid().
|
protected |
Definition at line 237 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\key(), and Sabre\VObject\Recur\RRuleIterator\nextYearly().
|
protected |
Definition at line 169 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\current(), Sabre\VObject\Recur\RRuleIterator\getMonthlyOccurrences(), Sabre\VObject\Recur\RRuleIterator\nextMonthly(), and Sabre\VObject\Recur\RRuleIterator\nextYearly().
|
protected |
Definition at line 969 of file RRuleIterator.php.
|
protected |
Definition at line 837 of file RRuleIterator.php.
|
protected |
Definition at line 177 of file RRuleIterator.php.
|
protected |
Definition at line 194 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextYearly().
|
protected |
Definition at line 161 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\__construct(), Sabre\VObject\Recur\RRuleIterator\getMonthlyOccurrences(), Sabre\VObject\Recur\RRuleIterator\parseRRule(), and Sabre\VObject\Recur\RRuleIterator\rewind().
|
protected |
Definition at line 201 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\isInfinite(), and Sabre\VObject\Recur\RRuleIterator\valid().
|
protected |
Definition at line 314 of file RRuleIterator.php.
Referenced by Sabre\VObject\Recur\RRuleIterator\nextWeekly().