method copyExceptions documentation in bbn\Appui\Event

Copies the event's exceptions to an other one.

function(string $from_event, string $to_event) { if ( Str::isUid($from_event) && Str::isUid($to_event) && ($table =& $this->class_cfg['tables']['exceptions']) && ($fields =& $this->class_cfg['arch']['exceptions']) ){ $exc = array_map(function($e) use($fields, $to_event){ unset($e[$fields['id']]); $e[$fields['id_event']] = $to_event; return $e; }, $this->db->rselectAll($table, [], [$fields['id_event'] => $from_event])); $inserted = 0; foreach ( $exc as $e ){ $inserted += $this->db->insert($table, $e); } return count($exc) === $inserted; } return false; }

Copies the event's exceptions to an other one. 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.