|
| $m_oTax = null |
|
| $m_oValidator = null |
|
| $m_oCatalogDB = null |
|
| $m_oShippingDB = null |
|
| $m_sCurrentDate = "" |
|
| $m_dDefaultWeight = DEFAULT_WEIGHT |
|
Definition at line 14 of file CFieldMapping.php.
__construct |
( |
|
$oCatalogDB, |
|
|
|
$oShippingDB |
|
) |
| |
__construct - Object constructor
public
- Parameters
-
object | $oCatalogDB | Catalog DB |
object | $oShippingDB | Shipping DB |
- Returns
- void
Definition at line 55 of file CFieldMapping.php.
57 $this->m_oValidator = new \SDExtension\Helper\CValidator($oCatalogDB, $oShippingDB);
58 $this->m_oTax = new \SDExtension\CTax($oCatalogDB, $oShippingDB);
59 $this->m_oCatalogDB = $oCatalogDB;
60 $this->m_oShippingDB = $oShippingDB;
61 $this->m_sCurrentDate = SellerDeckDate();
62 $oQueryResult = $this->m_oShippingDB->Select(TABLE_WEIGHT_CONFIGURATION,
'sDefaultWeight', [[
'nID', 0]]);
63 if ($oQueryResult !==
false)
65 $aControlInfo = $oQueryResult->fetch(\PDO::FETCH_ASSOC);
66 $this->m_dDefaultWeight = (double) arr_get($aControlInfo,
'sDefaultWeight', DEFAULT_WEIGHT);
GenerateOrderNumber |
( |
|
$sExternalOrderID | ) |
|
|
abstractprotected |
MapOrders - Maps Orders
protected
- Parameters
-
array | $aGetOrdersResult | GetOrders() Result |
GetProductByBarcode |
( |
|
$sBarcode | ) |
|
|
protected |
GetProductByBarcode - Getting Product by Barcode
protected
- Parameters
-
- Returns
- array Product
Definition at line 110 of file CFieldMapping.php.
112 $oQueryResult = $this->m_oCatalogDB->Select(TABLE_PRODUCT, [
'Product Reference'], [[
'sBarcode', SQL_TYPE_STRING . $sBarcode]]);
113 if ($oQueryResult ===
false)
117 return $oQueryResult->fetch(\PDO::FETCH_ASSOC);
GetProductByReference |
( |
|
$sProductReference | ) |
|
|
protected |
GetProductByReference - Getting Product by Reference
protected
- Parameters
-
string | $sProductReference | Product Reference |
- Returns
- array Product
Definition at line 93 of file CFieldMapping.php.
95 $oQueryResult = $this->m_oCatalogDB->Select(TABLE_PRODUCT,
'*', [[
'Product Reference', SQL_TYPE_STRING . $sProductReference]]);
96 if ($oQueryResult ===
false)
100 return $oQueryResult->fetch(\PDO::FETCH_ASSOC);
GetProductPropertiesByBarcode |
( |
|
$sBarcode | ) |
|
|
protected |
GetProductPropertiesByBarcode - Getting Product Properties by Barcode
protected
- Parameters
-
- Returns
- array Product Properties
Definition at line 127 of file CFieldMapping.php.
129 $oQueryResult = $this->m_oCatalogDB->Select(TABLE_PRODUCT_PROPERTIES,
'*', [[
'nType', 8], [
'sString4', SQL_TYPE_STRING . $sBarcode]]);
130 if ($oQueryResult ===
false)
134 return $oQueryResult->fetch(\PDO::FETCH_ASSOC);
MapOrders |
( |
|
$aGetOrdersResult | ) |
|
|
abstractprotected |
MapOrders - Maps Orders
protected
- Parameters
-
array | $aGetOrdersResult | GetOrders() Result |
The documentation for this class was generated from the following file: