本文整理汇总了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']);
}
}
}