本文整理汇总了PHP中Default_Model_Menu::getgroupmenu方法的典型用法代码示例。如果您正苦于以下问题:PHP Default_Model_Menu::getgroupmenu方法的具体用法?PHP Default_Model_Menu::getgroupmenu怎么用?PHP Default_Model_Menu::getgroupmenu使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Default_Model_Menu
的用法示例。
在下文中一共展示了Default_Model_Menu::getgroupmenu方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getgroupmenuAction
public function getgroupmenuAction()
{
$role_id = $this->_getParam('role_id', null);
$group_id = $this->_getParam('group_id', null);
$id = $this->_getParam('pri_val', null);
$disabled = $this->_getParam('disabled', '');
$menu_model = new Default_Model_Menu();
$menu_data = $menu_model->getgroupmenu($group_id, $role_id, $id);
$active_menus = $menu_model->getisactivemenus();
$act_menus = array();
if (!empty($active_menus)) {
foreach ($active_menus as $act) {
$act_menus[$act['id']] = $act;
}
}
$this->view->act_menus = $act_menus;
$this->view->menu_arr = $menu_data['tmpArr'];
$this->view->menu_data_post = $menu_data['menu_data_post'];
$this->view->menu_data = $menu_data['menu_data'];
$this->view->permission_data = $menu_data['permission_data'];
$this->view->group_level = $menu_data['group_data']['level'];
$this->view->disabled = $disabled;
$this->view->group_id = $group_id;
}
示例2: getgroupmenuAction
public function getgroupmenuAction()
{
$role_id = $this->_getParam('role_id', null);
$group_id = $this->_getParam('group_id', null);
$id = $this->_getParam('pri_val', null);
$disabled = $this->_getParam('disabled', '');
$menu_model = new Default_Model_Menu();
$menu_data = $menu_model->getgroupmenu($group_id, $role_id, $id);
$this->view->menu_arr = $menu_data['tmpArr'];
$this->view->menu_data_post = $menu_data['menu_data_post'];
$this->view->menu_data = $menu_data['menu_data'];
$this->view->permission_data = $menu_data['permission_data'];
$this->view->group_level = $menu_data['group_data']['level'];
$this->view->disabled = $disabled;
}