method getFirstRecurrence documentation in bbn\Appui\Event
Returns the date of the first recurrence of a recurring event.
function(array $event, $omitstart = true, $exceptions = false)
{
if (
$exceptions &&
($excs = $this->getExceptions($event[$this->fields['id']]))
){
$t =& $this;
$event[$this->class_cfg['extra']['exceptions']] = array_map(function($e) use($t){
return $e[$t->class_cfg['arch']['exceptions']['day']].' '.$e[$t->class_cfg['arch']['exceptions']['start']];
}, $excs);
}
$when = $this->getWhenObject($event);
if ( $r = $when->getNextOccurrence($when->startDate, $omitstart) ){
return $r->format('Y-m-d H:i:s');
}
return null;
}
Returns the date of the first recurrence of a recurring event. 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