Kaynağa Gözat

exact id

master
Daniel 3 yıl önce
ebeveyn
işleme
f86c17c9b8
1 değiştirilmiş dosya ile 4 ekleme ve 7 silme
  1. +4
    -7
      api/IsotopeDatabaseHandler.php

+ 4
- 7
api/IsotopeDatabaseHandler.php Dosyayı Görüntüle

@@ -1,8 +1,4 @@
<?php <?php
/**
* @author Daniel Knudsen <d.knudsen@spawntree.de>
* @date 11.07.22
*/


require_once('Product.php'); require_once('Product.php');


@@ -27,7 +23,6 @@ class IsotopeDatabaseHandler
} }
} }



public function processProducts(array $products) public function processProducts(array $products)
{ {
$this->dbHandle->beginTransaction(); $this->dbHandle->beginTransaction();
@@ -124,7 +119,8 @@ class IsotopeDatabaseHandler
cssID, cssID,
published, published,
start, start,
stop
stop,
exact_id
) VALUES ( ) VALUES (
0, 0,
0, 0,
@@ -149,7 +145,8 @@ class IsotopeDatabaseHandler
'', '',
'0', '0',
'', '',
''
'',
'".$product->getId()."'
)"; )";
$this->dbHandle->query($sql); $this->dbHandle->query($sql);
return $this->dbHandle->lastInsertId(); return $this->dbHandle->lastInsertId();


Yükleniyor…
İptal
Kaydet