method updateEvent documentation in bbn\Appui\Cms

Updates the event relative to the given note.

function(string $id_note, array $cfg = []) { if (!array_key_exists('start', $cfg) || !array_key_exists('end', $cfg)) { return false; } if ($this->_check_date($cfg['start'], $cfg['end'])) { if ($event = $this->getEvent($id_note)) { if ( (strtotime($cfg['start']) !== strtotime($event['start'])) || (strtotime($cfg['end']) !== strtotime($event['end']) ) ) { $cfg['id_type'] = $cfg['id_type'] ?? self::$_id_event ?? null; if ($res = $this->event->edit($event['id'], $cfg)) { $this->cacheDelete($id_note); } return $res; } else { return true; } } } return false; }

Updates the event relative to the given note. 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.