method setOrderWidget documentation in bbn\Appui\Dashboard
Set the widget's order number property
function(string $id, int $num)
{
if (!Str::isUid($id)) {
throw new \Exception(_("The id must be a uuid"));
}
if (!($bit = $this->pref->getBit($id, false))) {
throw new \Exception(sprintf(_("No widget found witheì the id %s"), $id));
}
if ((int)$bit[$this->archBits['num']] === $num) {
return true;
}
return (bool)$this->db->update(
$this->cfgPref['tables']['user_options_bits'],
[
$this->archBits['num'] => $num
],
[
$this->archBits['id'] => $id
]
);
}
Set the widget's order number property 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-2023
BBN Solutions