method copyTo documentation in bbn\Appui\Menu
Clones a section/link to an other menu.
function(string $id_bit, string $id_menu_to, array $cfg)
{
if (Str::isUid($id_bit)
&& Str::isUid($id_menu_to)
&& ($bit = $this->pref->getBit($id_bit))
&& ($id_menu = $this->getIdMenu($id_bit))
) {
$bit = array_merge(
$bit, $cfg, [
'id_parent' => null,
'num' => $this->pref->getMaxBitNum($id_menu_to, null, true)
]
);
$bits = $this->pref->getFullBits($id_menu, $id_bit, true);
if ($id = $this->add($id_menu_to, $bit)) {
if (!empty($bits) && !$this->_clone($id_menu_to, $bits, $id)) {
return null;
}
return $id;
}
}
return null;
}
Clones a section/link to an other 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.
© 2011-2024
BBN Solutions