method groupInsert documentation in bbn\User\Manager
function(array $data)
{
$g = $this->class_cfg['arch']['groups'];
if (isset($data[$g['group']])) {
if (!empty($data[$g['cfg']]) && is_array($data[$g['cfg']])) {
$data[$g['cfg']] = json_encode($data[$g['cfg']]);
}
if ($this->db->insert(
$this->class_cfg['tables']['groups'],
[
$g['group'] => $data[$g['group']],
$g['code'] => $data[$g['code']] ?? null,
$g['cfg'] => !empty($g['cfg']) && !empty($data[$g['cfg']]) ? $data[$g['cfg']] : '{}'
]
)
) {
return $this->db->lastId();
}
}
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-2025
BBN Solutions