當前位置: 首頁>>代碼示例>>PHP>>正文


PHP linked_install_set_menu函數代碼示例

本文整理匯總了PHP中linked_install_set_menu函數的典型用法代碼示例。如果您正苦於以下問題:PHP linked_install_set_menu函數的具體用法?PHP linked_install_set_menu怎麽用?PHP linked_install_set_menu使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了linked_install_set_menu函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: install_menu

 public function install_menu()
 {
     $this->CI->load->helper('menu');
     foreach ($this->menu as $gid => $menu_data) {
         $this->menu[$gid]['id'] = linked_install_set_menu($gid, $menu_data["action"], $menu_data["name"]);
         linked_install_process_menu_items($this->menu, 'create', $gid, 0, $this->menu[$gid]["items"]);
     }
 }
開發者ID:Calit2-UCI,項目名稱:IoT_Map,代碼行數:8,代碼來源:mail_list_install_model.php

示例2: deinstall_menu

 public function deinstall_menu()
 {
     $this->CI->load->helper('menu');
     foreach ($this->menu as $gid => $menu_data) {
         if ($menu_data['action'] == 'create') {
             linked_install_set_menu($gid, 'delete');
         } else {
             linked_install_delete_menu_items($gid, $this->menu[$gid]['items']);
         }
     }
 }
開發者ID:Calit2-UCI,項目名稱:IoT_Map,代碼行數:11,代碼來源:polls_install_model.php

示例3: deinstall_menu

 public function deinstall_menu()
 {
     $this->CI->load->model('Menu_model');
     $this->CI->load->helper('menu');
     linked_install_delete_menu_items($menu_gid, $items);
     foreach ($this->menu as $gid => $menu_data) {
         if ($menu_data["action"] == "create") {
             linked_install_set_menu($gid, "delete");
         } else {
             linked_install_delete_menu_items($gid, $this->menu[$gid]["items"]);
         }
     }
 }
開發者ID:Calit2-UCI,項目名稱:IoT_Map,代碼行數:13,代碼來源:properties_install_model.php

示例4: linked_install_delete_menu_items

 function linked_install_delete_menu_items($menu_gid, $items)
 {
     $menu_id = linked_install_set_menu($menu_gid, "none");
     if (!$menu_id) {
         return false;
     }
     if (!empty($items)) {
         foreach ($items as $item_gid => $item_data) {
             if ($item_data["action"] == 'create') {
                 linked_install_set_menu_item($item_gid, $menu_id, "delete");
             }
             if (!empty($items[$item_gid]["items"])) {
                 linked_install_delete_menu_items($menu_gid, $items[$item_gid]["items"]);
             }
         }
     }
     return;
 }
開發者ID:Calit2-UCI,項目名稱:IoT_Map,代碼行數:18,代碼來源:menu_helper.php

示例5: deinstall_menu

 public function deinstall_menu()
 {
     $this->CI->load->helper('menu');
     foreach ($this->menu as $gid => $menu_data) {
         if ($menu_data['action'] == 'create') {
             linked_install_set_menu($gid, 'delete');
         } else {
             linked_install_delete_menu_items($gid, $this->menu[$gid]['items']);
         }
     }
     if (!empty($this->menu_indicators)) {
         $this->CI->load->model('menu/models/Indicators_model');
         foreach ($this->menu_indicators as $data) {
             $this->CI->Indicators_model->delete_type($data['gid']);
         }
     }
 }
開發者ID:Calit2-UCI,項目名稱:IoT_Map,代碼行數:17,代碼來源:payments_install_model.php


注:本文中的linked_install_set_menu函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。