method setCurrent documentation in bbn\Appui\Dashboard
Sets the current dashboard by setting code and id properies.
function($id)
{
if (!empty($id)) {
if (Str::isUid($id)) {
if (!($this->code = $this->getCode($id))) {
throw new \Exception(sprintf(_("Unable to load the dashboard code using identifier: %s"), $id));
}
$this->id = $id;
} else {
if (!($this->id = $this->getId($id))) {
throw new \Exception(sprintf(_("Unable to load the dashboard using identifier: %s"), $id));
}
$this->code = $id;
}
return true;
}
return false;
}
Sets the current dashboard by setting code and id properies. 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