method getCfgByOption documentation in bbn\User\Preferences
Gets the cfg array, normalized either from the DB or from the $cfg argument.
Example
$pref->getCfgByOption("9439491824ef11eca47652540000cfbe");
(array) = [];
function(string $id_option, string $id_user = NULL)
{
if (
($cfg = $this->db->selectOne(
$this->class_cfg['table'],
$this->fields['cfg'],
[
$this->fields['id_option'] => $id_option,
$this->fields['id_user'] => $id_user ?: $this->id_user,
]
))
) {
if (bbn\Str::isJson($cfg)) {
$cfg = json_decode($cfg, 1);
}
return $this->getCfg(false, $cfg);
}
return null;
}
Gets the cfg array, normalized either from the DB or from the $cfg argument. 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