本文整理匯總了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"]);
}
}
示例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']);
}
}
}
示例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"]);
}
}
}
示例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;
}
示例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']);
}
}
}