method __construct documentation in bbn\Appui\Dashboard
dashboard constructor.
function(string $id = '')
{
$this->opt = bbn\Appui\Option::getInstance();
$this->user = bbn\User::getInstance();
$this->perm = bbn\User\Permissions::getInstance();
$this->pref = bbn\User\Preferences::getInstance();
$this->db = bbn\Db::getInstance();
$this->cfgPref = $this->pref->getClassCfg();
$this->archOpt = $this->opt->getClassCfg()['arch']['options'];
$this->archPref = $this->cfgPref['arch']['user_options'];
$this->archBits = $this->cfgPref['arch']['user_options_bits'];
self::optionalInit();
$this->widgetFields = \array_merge($this->nativeWidgetFields, \array_values($this->archBits));
$this->nativeWidgetFields = \array_merge($this->nativeWidgetFields, \array_values($this->archOpt));
$this->idList = $this->getOptionId('list');
if (!Str::isUid($this->idList)) {
throw new \Exception(_("Unable to load the option 'list'"));
}
$this->idWidgets = $this->getOptionId('widgets');
if (!Str::isUid($this->idWidgets)) {
throw new \Exception(_("Unable to load the option 'widgets'"));
}
if (!empty($id)) {
$this->setCurrent($id);
}
}
dashboard constructor. 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