コード例 #1
0
 public function add()
 {
     EbayOrder::insert(array('id_order_ref' => pSQL($this->id_order_ref), 'id_order' => (int) $this->id_order));
 }
コード例 #2
0
ファイル: EbayOrder.php プロジェクト: anantha89/gpprestashop
 public function add($id_ebay_profile = null)
 {
     $this->id_ebay_order = EbayOrder::insert(array('id_order_ref' => pSQL($this->id_order_ref)));
     if (is_array($this->id_orders)) {
         foreach ($this->id_orders as $id_shop => $id_order) {
             if (version_compare(_PS_VERSION_, '1.5', '>')) {
                 $res = Db::getInstance()->insert('ebay_order_order', array('id_ebay_order' => (int) $this->id_ebay_order, 'id_order' => (int) $id_order, 'id_shop' => (int) $id_shop));
             } else {
                 $res = Db::getInstance()->autoExecute(_DB_PREFIX_ . 'ebay_order_order', array('id_ebay_order' => (int) $this->id_ebay_order, 'id_order' => (int) $id_order, 'id_shop' => (int) $id_shop), 'INSERT');
             }
         }
         if ($res) {
             $this->_writeLog($id_ebay_profile, 'add_orders', $res);
         }
     }
 }