[+] 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:
mMarinetti
2011-09-23 15:01:49 +00:00
parent 1437dec72f
commit 926063e08f
13 changed files with 833 additions and 220 deletions
+11
View File
@@ -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;
}
}