method get documentation in bbn\Appui\Menu

function(string $id_menu, $submenu = NULL) { $res = $this->pref->getBits($id_menu, $submenu); if (\is_array($res) && !empty($res)) { foreach ($res as $k => &$d) { $d['numChildren'] = count($this->pref->getBits($id_menu, $d['id'])); $path = $tmp = []; if (!is_null($d['id_option'])) { $id_option = $d['id_option']; while ($id_option) { array_unshift($tmp, $id_option); $o = $this->options->parent($id_option); if ($o['code'] === 'access') { $path = $tmp; break; } else { $id_option = $o['id']; } } } $d['path'] = $path; if (!empty($d['path'][0])) { //array_shift($d['path']); } if (!$d['numChildren'] && isset($d['id_option']) && ($tmp = $this->perm->toPath($d['id_option'])) ) { $d['link'] = $tmp; } } unset($d); return $res; } return null; }

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.