method update documentation in bbn\Models\Tts\Dbconfig

Updates a single row in the table through its id.

function(string $id, array $data, bool $addCfg = false) { if (!$this->exists($id)) { throw new Exception(X::_("Impossible to find the given row")); } if ($addCfg) { $data = array_merge($this->rselect($id), $data); } if ($data = $this->prepare($data)) { $ccfg = $this->getClassCfg(); $f = $ccfg['arch'][$this->class_table_index]; return (bool)$this->db->update($ccfg['table'], $data, [$f['id'] => $id]); } return false; }

Updates a single row in the table through its id. 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.