|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
RRuleParser. More...
Inheritance diagram for Sabre\VObject\Recur\RDateIterator:
Collaboration diagram for Sabre\VObject\Recur\RDateIterator: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 | |
| parseRDate ($rdate) | |
| This method receives a string from an RRULE property, and populates this class with all the values. More... | |
Protected Attributes | |
| $startDate | |
| $currentDate | |
| $counter = 0 | |
| $dates = [] | |
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 22 of file RDateIterator.php.
| Sabre\VObject\Recur\RDateIterator::__construct | ( | $rrule, | |
| DateTimeInterface | $start | ||
| ) |
Creates the Iterator.
| string | array | $rrule | |
| DateTimeInterface | $start |
Definition at line 30 of file RDateIterator.php.
References $start, Sabre\VObject\Recur\RDateIterator\$startDate, and Sabre\VObject\Recur\RDateIterator\parseRDate().
Here is the call graph for this function:| Sabre\VObject\Recur\RDateIterator::current | ( | ) |
Definition at line 40 of file RDateIterator.php.
References Sabre\VObject\Recur\RDateIterator\$currentDate, and Sabre\VObject\Recur\RDateIterator\valid().
Here is the call graph for this function:| Sabre\VObject\Recur\RDateIterator::fastForward | ( | DateTimeInterface | $dt | ) |
This method allows you to quickly go to the next occurrence after the specified date.
| DateTimeInterface | $dt |
Definition at line 121 of file RDateIterator.php.
References Sabre\VObject\Recur\RDateIterator\next(), and Sabre\VObject\Recur\RDateIterator\valid().
Here is the call graph for this function:| Sabre\VObject\Recur\RDateIterator::isInfinite | ( | ) |
Returns true if this recurring event never ends.
Definition at line 107 of file RDateIterator.php.
| Sabre\VObject\Recur\RDateIterator::key | ( | ) |
Returns the current item number.
Definition at line 52 of file RDateIterator.php.
References Sabre\VObject\Recur\RDateIterator\$counter.
| Sabre\VObject\Recur\RDateIterator::next | ( | ) |
Goes on to the next iteration.
Definition at line 87 of file RDateIterator.php.
References Sabre\VObject\DateTimeParser\parse(), and Sabre\VObject\Recur\RDateIterator\valid().
Referenced by Sabre\VObject\Recur\RDateIterator\fastForward().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
This method receives a string from an RRULE property, and populates this class with all the values.
| string | array | $rrule |
Definition at line 165 of file RDateIterator.php.
Referenced by Sabre\VObject\Recur\RDateIterator\__construct().
Here is the caller graph for this function:| Sabre\VObject\Recur\RDateIterator::rewind | ( | ) |
Resets the iterator.
Definition at line 75 of file RDateIterator.php.
References Sabre\VObject\Recur\RDateIterator\$startDate.
| Sabre\VObject\Recur\RDateIterator::valid | ( | ) |
Returns whether the current item is a valid item for the recurrence iterator.
Definition at line 64 of file RDateIterator.php.
Referenced by Sabre\VObject\Recur\RDateIterator\current(), Sabre\VObject\Recur\RDateIterator\fastForward(), and Sabre\VObject\Recur\RDateIterator\next().
Here is the caller graph for this function:
|
protected |
Definition at line 153 of file RDateIterator.php.
Referenced by Sabre\VObject\Recur\RDateIterator\key().
|
protected |
Definition at line 144 of file RDateIterator.php.
Referenced by Sabre\VObject\Recur\RDateIterator\current().
|
protected |
Definition at line 180 of file RDateIterator.php.
|
protected |
Definition at line 136 of file RDateIterator.php.
Referenced by Sabre\VObject\Recur\RDateIterator\__construct(), and Sabre\VObject\Recur\RDateIterator\rewind().