method update documentation in bbn\Appui\Dashboard

Updates the current dashboard

function(array $d) { if ($this->_check()) { if (empty($d['code'])) { throw new \Exception(_("The dashboard's code is mandatory")); } if (empty($d[$this->archPref['text']])) { throw new \Exception(_("The dashboard's text is mandatory")); } $t = &$this; $data = \array_filter( $d, function ($f) use ($t) { return \in_array($f, \array_values($t->archPref), true); }, ARRAY_FILTER_USE_KEY ); $data[$this->archPref['cfg']] = ($cfg = $this->pref->getCfg(false, $d)) ? json_encode($cfg) : null; unset($data[$this->archPref['id']]); return (bool)$this->db->update($this->cfgPref['table'], $data, [$this->archPref['id'] => $this->id]); } }

Updates the current dashboard BBN is a suite of PHP and JS libraries and VueJS components - all open-source!, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.