method updateDb documentation in bbn\Appui\Medias
Updates the media on the databases
function(string $id_media, string $name, string $title, array $content = [])
{
$fields = [
$this->class_cfg['arch']['medias']['name'] => $name,
$this->class_cfg['arch']['medias']['title'] => $title
];
if(!empty($content)) {
$fields[$this->class_cfg['arch']['medias']['content']] = json_encode($content);
}
return $this->db->update(
[
'table' => $this->class_cfg['table'],
'fields' => $fields,
'where' => [
'conditions' => [[
'field' => $this->class_cfg['arch']['medias']['id'],
'value' => $id_media
]]
]
]
);
}
Updates the media on the databases 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.
© 2011-2023
BBN Solutions