private static function _updateMultiSkuItem($product_id, $data, $id_ebay_profile, $ebay, $date) { if ($ebay->reviseFixedPriceItemMultiSku($data)) { EbayProduct::updateByIdProductRef($data['itemID'], array('date_upd' => pSQL($date))); } // if product not on eBay as we expected we add it if ($ebay->errorCode == 291) { // We delete from DB and Add it on eBay EbayProduct::deleteByIdProductRef($data['itemID']); $ebay = EbaySynchronizer::_addMultiSkuItem($product_id, $data, $id_ebay_profile, $ebay, $date); } return $ebay; }