Esempio n. 1
0
 private function getoneorder($data)
 {
     $res = array();
     $res['username'] = $data['name'];
     $res['user_id'] = $data['user_id'];
     $t = json_decode($data['products'], TRUE);
     $s = array_keys($t['products_id']);
     $items = Orders_Model::GetAllProducts(implode(',', $s));
     $res['products']['items'] = $items;
     //$res['products']['items'] = $t;
     $res['products']['count'] = $t['count'];
     $res['products']['price'] = $t['price'];
     $res['made'] = $data['made'];
     $res['date'] = $data['date'];
     $res['id'] = $data['id'];
     return $res;
     //print_r($data);
 }