示例#1
0
 private function getBreadcrumbList($parent_menu_id, $list)
 {
     if (Utils::isEmpty($parent_menu_id)) {
         return $list;
     }
     $menu_mgr = new MenuManager();
     $parent_menu_link = $menu_mgr->getMenuWithLink($parent_menu_id);
     if (Utils::isEmpty($parent_menu_link)) {
         return $list;
     }
     array_unshift($list, $parent_menu_link);
     if ($parent_menu_link['parent_menu_id'] == -99) {
         return $list;
     } else {
         return $this->getBreadcrumbList($parent_menu_link['parent_menu_id'], $list);
     }
 }