method add documentation in bbn\Appui\Menu
Add menu and delete the chache.
function($id_menu, array $cfg = NULL)
{
$id_opt = $this->fromPath('menus');
if (\is_array($id_menu)) {
$cfg = $id_menu;
}
if (!empty($cfg)) {
if (Str::isUid($id_menu)) {
$this->deleteCache($id_menu);
$id = $this->pref->addBit($id_menu, $cfg);
}
else {
$id = $this->pref->addToGroup($id_opt, $cfg);
}
$this->options->deleteCache($id_opt);
return $id;
}
return null;
}
Add menu and delete the chache. 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