$orderGroup++; } } $propertyName = $item[global_mapping::PropertyID]; $propertyID = global_common::convertToInt($propertyName); //if is real propery name if ($propertyID <= 0) { $searchProperty = $objProperty->getPropertyByName($groupID, $propertyName); if ($searchProperty) { $propertyID = $searchProperty[global_mapping::PropertyID]; } else { $propertyID = $objProperty->insert($groupID, $propertyName, null, null, $createdBy, null); } } if ($propertyID) { $objProductProperty->insert($resultID, $propertyID, $item[global_mapping::PropertyValue], $orderProductProperty, 11, $item[global_mapping::Status]); $orderProductProperty++; } } $arrHeader = global_common::getMessageHeaderArr($banCode); //$banCode echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(1, 'Đăng bài viết thành công'), array(0, 1)); return; } else { echo global_common::convertToXML($arrHeader, array("rs", "inf"), array(0, "Input data is invalid"), array(0, 1)); return; } } else { $modifiedBy = $c_userInfo[global_mapping::UserID]; $productID = html_entity_decode($_pgR[global_mapping::ProductID], ENT_COMPAT, 'UTF-8'); $resultID = $objProduct->update($productID, $productName, $catalogueID, $imageLink, $manufactoryID, $description, $modifiedBy, null);