/**
  * This function acts as a service to get menu of a particular employee.
  * @param array $params_arr  = array of parameters
  * @return array  Array of menu items.
  */
 public function getmenu($params_arr)
 {
     $result = array();
     $status = 0;
     $message = "No data found.";
     if (isset($params_arr['role_id']) && $params_arr['role_id'] != '' && isset($params_arr['group_id']) && $params_arr['group_id'] != '') {
         $role_id = $params_arr['role_id'];
         $group_id = $params_arr['group_id'];
         $menu_model = new Default_Model_Menu();
         $group_menu = $menu_model->getgroupmenu_service($group_id, $role_id);
         if (count($group_menu) > 0) {
             $result = $group_menu;
             $message = "success";
             $status = 1;
         }
         //echo "<pre>";print_r($new_gmenu);echo "</pre>";
     }
     return array('status' => $status, 'message' => $message, 'result' => $result);
 }