Tutorial Extension  1.0.0
SellerDeck Extensions - Tutorial Extension
CProductBase.php
1 <?php
2 
3 /**
4  * CProductBase.php - Implementation of Product table class.
5  *
6  * @package SellerDeck Extensions
7  *
8  * @author Péter Erdődi
9  * @copyright © SellerDeck Ltd 2015. All rights reserved.
10  */
11 
12 namespace SDExtension\DB\Table;
13 
14 class CProductBase extends CTable
15  {
16 
17  /**
18  * @var string $m_sTable Table name
19  */
20  protected $m_sTable = TABLE_PRODUCT;
21 
22  /**
23  * @var string $m_sIdColumn ID Column name
24  */
25  protected $m_sIdColumn = 'Product Reference';
26 
27  /**
28  * @var bool $m_bAutoID Auto ID
29  */
30  protected $m_bAutoID = false;
31 
32  /**
33  * @var array $m_aDefaultValues Default Values
34  */
35  protected $m_aDefaultValues = [
36  'Magic number' => '',
37  'Version' => '',
38  'Update prog version no' => '',
39  'Update count' => '',
40  'Last update' => '',
41  'IP Address' => '',
42  'Status' => '',
43  'Catalog reference' => '',
44  'nParentSectionID' => '',
45  'Product sequence' => '',
46  'Magic number' => '',
47  'Version' => '',
48  'Update prog version no' => '',
49  'Update count' => '',
50  'Last update' => '',
51  'IP Address' => '',
52  'Status' => '',
53  'Catalog reference' => '',
54  'nParentSectionID' => '',
55  'Product sequence' => '',
56  'Product Reference' => '',
57  'Full description' => '',
58  'Price' => '',
59  'Can be ordered online' => '',
60  'Max quantity orderable' => '',
61  'Min quantity orderable' => '',
62  'TaxTreatment' => '',
63  'sDetailLinkText' => '',
64  'bSuppressHtml' => 0, //false
65  'sProductTemplate' => '',
66  'ShippingOpaqueData' => '',
67  'sPriceText' => '',
68  'sButtonText' => '',
69  'sAlternateForRef' => '',
70  'nAttributeGroupID' => '',
71  'bUseExternalData' => 0, //false
72  'bStockEnabled' => 0, //false
73  'nStockOnHand' => '',
74  'nStockWarn' => '',
75  'nStockSuspend' => '',
76  'sVariantOfRef' => '',
77  'bHasSubItems' => 0, //false
78  'nPricingModel' => '',
79  'sReportDescription' => '',
80  'nPrintSequence' => '',
81  'sTax1OpaqueData' => '',
82  'sTax2OpaqueData' => '',
83  'sTax3OpaqueData' => '',
84  'sTax4OpaqueData' => '',
85  'sTax5OpaqueData' => '',
86  'sTax6OpaqueData' => '',
87  'sTax7OpaqueData' => '',
88  'sTax8OpaqueData' => '',
89  'sTax9OpaqueData' => '',
90  'sTax10OpaqueData' => '',
91  'sTax11OpaqueData' => '',
92  'sTax12OpaqueData' => '',
93  'sTax13OpaqueData' => '',
94  'sTax14OpaqueData' => '',
95  'sTax15OpaqueData' => '',
96  'sTax16OpaqueData' => '',
97  'sTax17OpaqueData' => '',
98  'sTax18OpaqueData' => '',
99  'sTax19OpaqueData' => '',
100  'sTax20OpaqueData' => '',
101  'sTax21OpaqueData' => '',
102  'sTax22OpaqueData' => '',
103  'sTax23OpaqueData' => '',
104  'sTax24OpaqueData' => '',
105  'sTax25OpaqueData' => '',
106  'sTax26OpaqueData' => '',
107  'sTax27OpaqueData' => '',
108  'sTax28OpaqueData' => '',
109  'sTax29OpaqueData' => '',
110  'sTax30OpaqueData' => '',
111  'sTax31OpaqueData' => '',
112  'sTax32OpaqueData' => '',
113  'sTax33OpaqueData' => '',
114  'sTax34OpaqueData' => '',
115  'sTax35OpaqueData' => '',
116  'sTax36OpaqueData' => '',
117  'sTax37OpaqueData' => '',
118  'sTax38OpaqueData' => '',
119  'sTax39OpaqueData' => '',
120  'sTax40OpaqueData' => '',
121  'sTax41OpaqueData' => '',
122  'sTax42OpaqueData' => '',
123  'sTax43OpaqueData' => '',
124  'sTax44OpaqueData' => '',
125  'sTax45OpaqueData' => '',
126  'sTax46OpaqueData' => '',
127  'sTax47OpaqueData' => '',
128  'sTax48OpaqueData' => '',
129  'sTax49OpaqueData' => '',
130  'sTax50OpaqueData' => '',
131  'bShipSeparately' => 0, //false
132  'nMinYearValue' => '',
133  'nMaxYearValue' => '',
134  'bGeneratePopupPage' => 0, //false
135  'sExtendedInfoLayout' => '',
136  'sExtendedInfoText' => '',
137  'sExtendedInfoWidth' => '',
138  'sExtendedInfoHeight' => '',
139  'sExtendedInfoPage' => '',
140  'bNoOrderLineForMainProduct' => 0, //false
141  'Date prompt text' => '',
142  'Other info prompt' => '',
143  'bAutoShip' => 0, //false
144  'nGroupID' => '',
145  'nProductType' => '',
146  'sOriginalProdRef' => '',
147  'nDuplicateIndex' => '',
148  'sLinkedItemID' => '',
149  'nLinkedItemType' => '',
150  'bLinked' => 0, //false
151  'sFragmentText' => '',
152  'bImageClickable' => 0, //false
153  'sLinkText' => '',
154  'sLayoutID' => '',
155  'sFragmentImage' => '',
156  'bExcludeFromFroogle' => 0, //false
157  'nContentCategory' => '',
158  'bIncludeInBestSellers' => 0, //false
159  'bIncludeInNewProducts' => 0, //false
160  'bIncludeInAlsoBought' => 0, //false
161  'bExcludeFromShippingCalc' => 0, //false
162  'bShareWithEpos' => 0, //false
163  'sBarcode' => '',
164  'bShipSupplAppliedOnce' => 0, //false
165  'bHandSupplAppliedOnce' => 0, //false
166  'dShippingSupplement' => '',
167  'dHandlingSupplement' => '',
168  'sAltWeight' => '',
169  'sShippingCategory' => '',
170  'nShippingQuantity' => '',
171  'sDDFileName' => '',
172  'Short description' => '',
173  'Image FileName' => '',
174  'sThumbnailImage' => '',
175  'sDetailUrlOrFile' => '',
176  'sExtendedInfoImage' => '',
177  'nCostPrice' => '',
178  'sFragmentTitle' => '',
179  'sCreateDate' => '',
180  'sPreviousRef' => '',
181  'sPreviousShortDescription' => '',
182  'nPreviousProductEntryFlags' => '',
183  'sStockAisle' => '',
184  'sStockRack' => '',
185  'sStockSubRack' => '',
186  'sStockBin' => '',
187  'bAssemblyProduct' => 0, //false
188  'bGenerateSingleProductPage' => 0, //false
189  'sSingleProductPageName' => '',
190  'sSingleProductPageTitle' => '',
191  'sSPPMetaDescription' => '',
192  'sSPPMetaKeyWords' => '',
193  'bSPPIncludeInSiteMap' => 0, //false
194  'nDisplayByImage' => '',
195  'nDisplayByLink' => '',
196  'nDisplayByProductName' => '',
197  'bSPPDisplayExtInfoByImage' => 0, //false
198  'bSPPDisplayExtInfoByBtn' => 0, //false
199  'bSPPDisplayExtInfoByLink' => 0, //false
200  'sSPPDisplayExtInfoByLinkTxt' => '',
201  'sProductListLinkText' => '',
202  'bHideFromSearchAndFilters' => 0, //false
203  'bEnableFragmentProductList' => 0, //false
204  'sAlternateProductList' => '',
205  'sAltParentProductRef' => '',
206  'nReviewCount' => '',
207  'nReviewRating' => '',
208  'sEmbedVideoHTML' => '',
209  'sExtInfoEmbedVideoHTML' => '',
210  'sReviewXML' => '',
211  ];
212 
213  }