当前位置: 首页>>代码示例>>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;未经允许,请勿转载。