method setCfg documentation in bbn\User\Preferences
Sets (or unsets) the cfg field of a given preference based on its ID
function(string $id = NULL, array $cfg = NULL)
{
if (null !== $cfg) {
$cfg = $this->getCfg(null, $cfg);
$config = json_encode($cfg);
}
else {
$config = null;
}
return $this->db->update(
$this->class_cfg['table'],
[
$this->fields['cfg'] => $config
],
[
$this->fields['id'] => $id
]
);
}
Sets (or unsets) the cfg field of a given preference based on its ID 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