method getRecurrences documentation in bbn\Appui\Event
Returns an array of all event's recurrences in a period
function(string $start, string $end, array &$event)
{
// Recurring table fields
$rf =& $this->class_cfg['arch']['recurring'];
// Events table fields
$ef =& $this->class_cfg['arch']['events'];
// When object instance
$when = $this->getWhenObject($event);
// Get occurrences
$occ = $this->makeRecurrencesFields($event, $when->getOccurrencesBetween(new \DateTime($start), new \DateTime($end)));
// Specific month's week
if ( !empty($event[$rf['mw']]) ){
$occ = $this->filterRecurrencesByMonthWeek($occ, $event[$rf['mw']]);
}
return $this->filterRecurrencesByExceptions($occ);
}
Returns an array of all event's recurrences in a period BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way
This website uses cookies to ensure you get the best experience on our website.
© 2011-2023
BBN Solutions