1 | <?php |
||
12 | class EcommerceConfigAjaxDefinitions extends ViewableData |
||
13 | { |
||
14 | /** |
||
15 | * prefix used for all classes and IDs. |
||
16 | * |
||
17 | * @var null | String |
||
18 | */ |
||
19 | private static $prefix = null; |
||
20 | |||
21 | /** |
||
22 | * the class that is requesting the ajax definitions |
||
23 | * we provide the requestor so that we can dynamically change |
||
24 | * the ids and classes, using the requestor. |
||
25 | * e.g. |
||
26 | * <code> |
||
27 | * MyTableRowID(){ |
||
28 | * return $this->requestor->ClassName."_bla".$this->requestor->ID; |
||
29 | * } |
||
30 | * </code>. |
||
31 | * |
||
32 | * @var DataObject |
||
33 | */ |
||
34 | protected $requestor = null; |
||
35 | |||
36 | /** |
||
37 | * set the requestor. |
||
38 | * |
||
39 | * @param DataObject $do - the object that requested the data. |
||
40 | */ |
||
41 | public function setRequestor($do) |
||
48 | |||
49 | /*___________________ |
||
50 | |||
51 | 0. without context |
||
52 | ___________________*/ |
||
53 | |||
54 | /** |
||
55 | * id that is used in templates and in the JSON return @see CartResponse |
||
56 | * The Side bar cart ID is used for populating a small cart on the side bar. |
||
57 | * |
||
58 | * @see Sidebar_Cart.ss |
||
59 | * |
||
60 | * @return string |
||
61 | **/ |
||
62 | public function SideBarCartID() |
||
66 | |||
67 | /** |
||
68 | * Small representation of cart. |
||
69 | * |
||
70 | * @see CartShort.ss |
||
71 | * |
||
72 | * @return string |
||
73 | **/ |
||
74 | public function SmallCartID() |
||
78 | |||
79 | /** |
||
80 | * class that is used in templates and in the JSON return @see CartResponse |
||
81 | * The Menu Cart class is used for populating a tiny cart on your site |
||
82 | * (e.g. you have 3 items in your cart ($1343)). |
||
83 | * |
||
84 | * @see CartTiny.ss |
||
85 | * |
||
86 | * @return string |
||
87 | **/ |
||
88 | public function TinyCartClassName() |
||
92 | |||
93 | /** |
||
94 | * @return string |
||
95 | **/ |
||
96 | public function HiddenPageTitleID() |
||
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | **/ |
||
104 | public function ProductListHolderID() |
||
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | **/ |
||
112 | public function ProductListAjaxifiedLinkClassName() |
||
116 | |||
117 | /** |
||
118 | * List of products in the ProductGroup page... |
||
119 | * |
||
120 | * @see ProductGroupItem.ss, ProductGroupItemMoreDetail.ss, and ProductGroupItemShort.ss |
||
121 | * |
||
122 | * @return string |
||
123 | **/ |
||
124 | public function ProductListItemClassName() |
||
128 | |||
129 | /** |
||
130 | * Class used to identify that a product is in cart. |
||
131 | * |
||
132 | * @see ProductGroupItem.ss, ProductGroupItemMoreDetail.ss, and ProductGroupItemShort.ss |
||
133 | * |
||
134 | * @return string |
||
135 | **/ |
||
136 | public function ProductListItemInCartClassName() |
||
140 | |||
141 | /** |
||
142 | * Class used to identify that a product is not in cart. |
||
143 | * |
||
144 | * @see ProductGroupItem.ss, ProductGroupItemMoreDetail.ss, and ProductGroupItemShort.ss |
||
145 | * |
||
146 | * @return string |
||
147 | **/ |
||
148 | public function ProductListItemNotInCartClassName() |
||
152 | |||
153 | /*___________________ |
||
154 | |||
155 | 1. Generic (Order / Modifier / OrderItem) |
||
156 | ___________________*/ |
||
157 | |||
158 | /** |
||
159 | *@return string for use in the Templates |
||
160 | **/ |
||
161 | public function TableID() |
||
165 | |||
166 | /** |
||
167 | *@return string for use in the Templates |
||
168 | **/ |
||
169 | public function TableTotalID() |
||
173 | |||
174 | /*___________________ |
||
175 | |||
176 | 2. Order |
||
177 | ___________________*/ |
||
178 | |||
179 | /** |
||
180 | * id that is used in templates and in the JSON return @see CartResponse. |
||
181 | * |
||
182 | * @return string |
||
183 | **/ |
||
184 | public function TableMessageID() |
||
188 | |||
189 | /** |
||
190 | * id that is used in templates and in the JSON return @see CartResponse. |
||
191 | * |
||
192 | * @return string |
||
193 | **/ |
||
194 | public function TableSubTotalID() |
||
198 | |||
199 | /** |
||
200 | * class that is used in templates and in the JSON return @see CartResponse. |
||
201 | * |
||
202 | * @return string |
||
203 | **/ |
||
204 | public function TotalItemsTimesQuantityClassName() |
||
208 | |||
209 | /** |
||
210 | * class that is used in templates and in the JSON return @see CartResponse. |
||
211 | * |
||
212 | * @return string |
||
213 | **/ |
||
214 | public function TotalItemsClassName() |
||
218 | /** |
||
219 | * class that is used in templates and in the JSON return @see CartResponse. |
||
220 | * |
||
221 | * @return string |
||
222 | **/ |
||
223 | public function ExpectedCountryClassName() |
||
227 | |||
228 | /** |
||
229 | * class that is used in templates and in the JSON return @see CartResponse. |
||
230 | * |
||
231 | * @return string |
||
232 | **/ |
||
233 | public function CountryFieldID() |
||
237 | |||
238 | /** |
||
239 | * class that is used in templates and in the JSON return @see CartResponse. |
||
240 | * |
||
241 | * @return string |
||
242 | **/ |
||
243 | public function RegionFieldID() |
||
247 | |||
248 | /*___________________ |
||
249 | |||
250 | 3. Order Attribute (Modifier + OrderItem) |
||
251 | ___________________*/ |
||
252 | |||
253 | /** |
||
254 | *@return string for use in the Templates |
||
255 | **/ |
||
256 | public function TableTitleID() |
||
260 | |||
261 | /** |
||
262 | *@return string for use in the Templates |
||
263 | **/ |
||
264 | public function CartTitleID() |
||
268 | |||
269 | /** |
||
270 | *@return string for use in the Templates |
||
271 | **/ |
||
272 | public function TableSubTitleID() |
||
276 | |||
277 | /** |
||
278 | *@return string for use in the Templates |
||
279 | **/ |
||
280 | public function CartSubTitleID() |
||
284 | |||
285 | /*___________________ |
||
286 | |||
287 | 4. OrderItems |
||
288 | ___________________*/ |
||
289 | |||
290 | /** |
||
291 | * id that is used in templates and in the JSON return @see CartResponse. |
||
292 | * |
||
293 | * @return string |
||
294 | **/ |
||
295 | public function QuantityFieldName() |
||
299 | |||
300 | /*___________________ |
||
301 | |||
302 | 5. Modifiers |
||
303 | ___________________*/ |
||
304 | |||
305 | /*___________________ |
||
306 | |||
307 | 6. Buyable |
||
308 | ___________________*/ |
||
309 | |||
310 | /** |
||
311 | * returns a string that can be used as a unique Identifier for use in templates, etc... |
||
312 | * |
||
313 | * @return string |
||
314 | */ |
||
315 | public function UniqueIdentifier() |
||
319 | |||
320 | public function Define($name) |
||
326 | } |
||
327 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..