method groupEdit documentation in bbn\User\Manager

function(string $id, array $data) { $g = $this->class_cfg['arch']['groups']; if (!empty($data[$g['group']])) { if (!empty($data[$g['cfg']]) && is_array($data[$g['cfg']])) { $data[$g['cfg']] = json_encode($data[$g['cfg']]); } return (bool)$this->db->update( $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']] : '{}' ], [$g['id'] => $id] ); } 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.