method getDefault documentation in bbn\Appui\Dashboard
Gets the user's default dashboard
function()
{
if (($id_opt = $this->getOptionId('default'))
&& ($all = $this->pref->getAll($id_opt))
) {
if ($by_id_user = \array_filter(
$all,
function ($a) {
return !empty($a['id_user']) && !empty($a['id_alias']);
}
)) {
return $by_id_user[0]['id_alias'];
} elseif ($by_id_group = \array_filter(
$all,
function ($a) {
return !empty($a['id_group']) && !empty($a['id_alias']);
}
)) {
return $by_id_group[0]['id_alias'];
} elseif ($by_public = \array_filter(
$all,
function ($a) {
return !empty($a['public']) && !empty($a['id_alias']);
}
)) {
return $by_public[0]['id_alias'];
}
}
return null;
}
Gets the user's default dashboard 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