method getBit documentation in bbn\User\Preferences
Returns a single preference's bit
function(string $id, bool $with_config = true)
{
if (
\bbn\Str::isUid($id)
&& ($bit = $this->db->rselect(
$this->class_cfg['tables']['user_options_bits'],
[],
[
$this->class_cfg['arch']['user_options_bits']['id'] => $id
]
))
) {
if ($this->isAuthorized($bit['id_user_option'])) {
if ($with_config) {
return $this->explodeBitCfg($bit);
}
return $bit;
}
}
return [];
}
Returns a single preference's 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