method update documentation in bbn\Entities\AbstractLinkType

function(array $cfg) { $f = $this->fields; if (($cfg = $this->input($cfg)) && isset($cfg[$f['id']]) && (isset($cfg[$f['id_people']]) || isset($cfg[$f['id_address']])) ) { $param = []; foreach ($cfg as $k => $v){ if (!in_array($k, $this->fields)) { $param[$k] = $v; unset($cfg[$k]); } } $cfg[$f['cfg']] = json_encode($param); $id = $cfg[$f['id']]; unset($cfg[$f['id']]); if ($this->db->update($this->class_table, $cfg, [ $f['id'] => $id, $f['id_entity'] => $this->entity->getId()] )) { return $this->output($id); } $this->error("Update", false); return false; } $this->error("Update"); return false; }

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.