Function getAllDatesWithRepeats
get all repeating events/bookings? TODO: change function name, in a distinct view bookings are events too use constants for repeat ids (better readable)
Maybe rewrite function: look at php date objects like DatePeriod, DateInterval: $period = new DatePeriod($start, $interval, $recurrences); foreach ($period as $date) { echo $date->format('Y-m-d')."\n"; } you can use dates like "first tuesday of july 2008", "next Monday 2012-04-01" http://de1.php.net/manual/de/datetime.formats.relative.php
Parameters summary
object |
$r |
|
integer |
$_from = -1 |
$_from; default: -1, days to add to fromDate |
integer |
$_to = 1 |
$_to; default: 1, days to add to fromDate |
|
$fromDate = null |
Return value summary
|