method filterRecurrencesByExceptions documentation in bbn\Appui\Event

Filters the event's recurrences by exceptions.

function(array $recurrences) { if ( !empty($recurrences) && // Recurring table fields ($rf =& $this->class_cfg['arch']['recurring']) && // Exception table fields ($ef =& $this->class_cfg['arch']['events']) && // Events table fields ($rt =& $this->class_cfg['tables']['exceptions']) && // Exception table fields ($exf =& $this->class_cfg['arch']['exceptions']) && // Get exceptions ($ex = $this->getExceptions($recurrences[0][$rf['id_event']])) ){ return array_filter($recurrences, function($r) use($ex, $ef, $exf){ return \bbn\X::find($ex, [$exf['day'] => date('Y-m-d', strtotime($r[$ef['start']]))]) === null; }); } return $recurrences; }

Filters the event's recurrences by exceptions. 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.