本文整理匯總了PHP中OrderDetail::getFoodOrderDetailsByIDOrder方法的典型用法代碼示例。如果您正苦於以下問題:PHP OrderDetail::getFoodOrderDetailsByIDOrder方法的具體用法?PHP OrderDetail::getFoodOrderDetailsByIDOrder怎麽用?PHP OrderDetail::getFoodOrderDetailsByIDOrder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OrderDetail
的用法示例。
在下文中一共展示了OrderDetail::getFoodOrderDetailsByIDOrder方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getAllFinishFoodOrdersKitchen
public function getAllFinishFoodOrdersKitchen()
{
if (Efiwebsetting::getData('checkOAuth') == 'yes') {
IMBAuth::checkOAuth();
}
$json = array();
$json['status_code'] = 1;
$id_restaurant = isset($_GET['id_restaurant']) ? addslashes($_GET['id_restaurant']) : "";
if (!$id_restaurant) {
Generic::errorMsg("No ID Restaurant found!");
}
$activeOrder = self::getTodayFinishOrderKitchenByRestoID($id_restaurant);
Generic::checkCountWithMsg($activeOrder, "No active order found!");
foreach ($activeOrder as $order) {
$order_detail_hlp = OrderDetail::getFoodOrderDetailsByIDOrder($order['id_order']);
if (count($order_detail_hlp) > 0) {
$order['Order Details'] = $order_detail_hlp;
$sem['Order'][] = $order;
}
}
if (!isset($sem)) {
$sem['Order'] = array();
}
$json['results'] = $sem;
echo json_encode($json);
die;
}