method moveBit documentation in bbn\User\Preferences
Moves a bit.
function(string $id, string $id_parent = NULL)
{
if (
\bbn\Str::isUid($id)
&& ((\bbn\Str::isUid($id_parent) && $this->getBit($id_parent))
|| \is_null($id_parent) )
&& ($bit = $this->getBit($id))
&& ($cf = $this->getClassCfg())
&& ($cfg = $cf['arch']['user_options_bits'])
) {
$upd = [
$cfg['id_parent'] => $id_parent,
$cfg['num'] => $this->getMaxBitNum($bit[$cfg['id_user_option']], $id_parent, true)
];
return (bool)$this->db->update($cf['tables']['user_options_bits'], $upd, [$cfg['id'] => $id]);
}
return null;
}
Moves a bit. 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