public static function getBeverageOrderDetailsByIDOrder($id_order) { $objOrderDetails = new OrderDetailModel(); $arrOrderDetails = $objOrderDetails->getWhere("id_order='{$id_order}' AND order_now='1' ORDER BY id_dish ASC"); if (count($arrOrderDetails) > 0) { $exp = explode(",", str_replace(" ", "", $objOrderDetails->crud_webservice_allowed)); $orderdetails = array(); foreach ($arrOrderDetails as $order) { $id_category = MasterDish::getCategoryIDByDishID($order->id_dish); $isDrink = MasterCategory::isCategoryDrink($id_category); if ($isDrink == TRUE) { $sem = array(); foreach ($exp as $attr) { $sem[$attr] = stripslashes($order->{$attr}); } $sem['name'] = MasterDish::getDishNameByID($order->id_dish); $orderdetails[] = $sem; } } } return $orderdetails; }