method update documentation in bbn\Appui\Masks
function(array $cfg)
{
if (!empty($cfg['id_note'])
&& !empty($cfg['title'])
&& !empty($cfg['content'])
&& !empty($cfg['name'])
) {
$data = [
'name' => $cfg['name'],
'def' => !empty($cfg['def']) || !empty($cfg['default']) ? 1 : 0
];
if (!empty($cfg['id_type'])) {
$data['id_type'] = $cfg['id_type'];
}
$update_mask = $this->db->update('bbn_notes_masks', $data, ['id_note' => $cfg['id_note']]);
$update_notes = $this->notes->update($cfg['id_note'], $cfg['title'], $cfg['content']);
if ($update_mask || $update_notes) {
return true;
}
}
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.
© 2011-2023
BBN Solutions