method shortcuts documentation in bbn\Appui\Menu
Gets the user' shortcuts list
function()
{
if (($id_option = $this->fromPath('shortcuts'))
&& ($menu = $this->pref->getByOption($id_option))
) {
$links = $this->pref->getBits($menu['id']);
$res = [];
foreach ($links as $link){
if (empty($link['id_option'])) {
$this->pref->deleteBit($link['id']);
}
elseif ($url = $this->toPath($link['id_option'])) {
$res[] = [
'id' => $link['id'],
'id_option' => $link['id_option'],
'url' => $url . (empty($link['url']) ? '' : '/' . $link['url']),
'text' => $link['text'],
'icon' => $link['icon'],
'num' => $link['num']
];
}
}
return $res;
}
return null;
}
Gets the user' shortcuts list 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