[+] BO : New AdminController system, including smarty backoffice, thanks to Raphael and Thomas
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8742 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -252,4 +252,15 @@ class TabCore extends ObjectModel
|
||||
return ($tabAccesses[(int)($id_tab)]['view'] === '1');
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function recursiveTab($id_tab, $tabs)
|
||||
{
|
||||
$adminTab = Tab::getTab((int)Context::getContext()->language->id, $id_tab);
|
||||
$tabs[]= $adminTab;
|
||||
if ($adminTab['id_parent'] > 0)
|
||||
{
|
||||
$tabs[] = Tab::recursiveTab($adminTab['id_parent'], $tabs);
|
||||
}
|
||||
return $tabs;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user