/** * transforms a menu array into a menu link * @param array $menu * @return string $str */ public static function parseMenuLinkFromArray($menu) { if (!isset($menu['extra'])) { $menu['extra'] = array(); } if (isset($menu['auth']) && !empty($menu['auth'])) { if (!session::checkAccessClean($menu['auth'])) { return false; } return html::createLink($menu['url'], $menu['title'], $menu['extra']); } else { return html::createLink($menu['url'], $menu['title'], $menu['extra']); } }