method insert documentation in bbn\Appui\Masks
function($name, $id_type, $title, $content)
{
if (!bbn\Str::isUid($id_type)) {
$id_type = self::getOptionId($id_type);
}
if ($this->options->exists($id_type)
&& ($id_note = $this->notes->insert($title, $content, $this->options->fromCode('masks', 'types', 'note', 'appui')))
) {
$data = [
'id_note' => $id_note,
'id_type' => $id_type,
'name' => $name
];
if (!$this->count($id_type)) {
$data['def'] = 1;
}
if ($this->db->insert('bbn_notes_masks', $data)) {
return $id_note;
}
}
return null;
}
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