method getDefault documentation in bbn\Appui\Menu

Gets the user's default menu

function() { if (($id_opt = $this->fromPath('default')) && ($all = $this->pref->getAll($id_opt)) ) { $id = null; if ($by_id_user = \array_filter( $all, function ($a) { return !empty($a['id_user']) && !empty($a['id_alias']); } ) ) { $id = $by_id_user[0]['id_alias']; } elseif ($by_id_group = \array_filter( $all, function ($a) { return !empty($a['id_group']) && !empty($a['id_alias']); } ) ) { $id = $by_id_group[0]['id_alias']; } elseif ($by_public = \array_filter( $all, function ($a) { return !empty($a['public']) && !empty($a['id_alias']); } ) ) { $id = $by_public[0]['id_alias']; } return $id; } return null; }

Gets the user's default menu 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.