26 private static $init =
false;
34 'preferredNeighbourEnabled' =>
'Wunschnachbar',
35 'preferredLocationEnabled' =>
'Wunschort',
36 'visualCheckOfAgeEnabled' =>
'Alterssichtprüfung',
37 'personalHandover' =>
'Eigenhändig',
38 'namedPersonOnly' =>
'persönliche Übergabe',
39 'identCheckEnabled' =>
'Ident-Check',
40 'endorsementEnabled' =>
'Vorausverfügung',
41 'returnReceipt' =>
'Rückschein',
42 'preferredDayEnabled' =>
'Wunschtag',
43 'preferredTimeEnabled' =>
'Wunschzeit',
44 'disableNeighbourDelivery' =>
'keine Nachbarschaftszustellung',
45 'goGreen' =>
'GoGreen',
46 'additionalInsuranceEnabled' =>
'Transportversicherung',
47 'bulkyGoods' =>
'Sperrgut',
48 'cashOnDeliveryEnabled' =>
'Nachnahme',
49 'dayOfDeliveryEnabled' =>
'Zustelldatum',
50 'deliveryTimeframeEnabled' =>
'Zustellzeitfenster',
51 'shipmentHandlingEnabled' =>
'Sendungshandling',
52 'perishables' =>
'verderbliche Ware',
53 'individualSenderRequiredmentsEnabled' =>
'Individuelle Senderhinweise',
54 'premium' =>
'Premium',
55 'packagingReturn' =>
'Verpackungsrücknahme',
56 'noticeNonDeliverability' =>
'Unzustellbarkeitsnachricht',
57 'returnImmediatlyIfShipmentFailed' =>
'ReturnImmediately' 65 private static $dhlProducts = array();
70 private function __clone() { }
75 private function __construct() { }
80 private static function init() {
85 $obj->setName(
'DHL Paket');
86 $obj->setMinLength(15);
87 $obj->setMaxLength(200);
88 $obj->setMinWidth(11);
89 $obj->setMaxWidth(200);
90 $obj->setMinHeight(1);
91 $obj->setMaxHeight(200);
92 $obj->setMaxWeight(31.5);
93 $obj->setServices(array(
94 'preferredNeighbourEnabled',
95 'preferredLocationEnabled',
96 'visualCheckOfAgeEnabled',
100 'preferredDayEnabled',
101 'preferredTimeEnabled',
102 'disableNeighbourDelivery',
104 'additionalInsuranceEnabled',
106 'cashOnDeliveryEnabled',
107 'individualSenderRequiredmentsEnabled',
109 'noticeNonDeliverability' 111 self::addProduct($obj);
114 $obj->setName(
'DHL Paket PRIO');
115 $obj->setMinLength(15);
116 $obj->setMaxLength(200);
117 $obj->setMinWidth(11);
118 $obj->setMaxWidth(200);
119 $obj->setMinHeight(1);
120 $obj->setMaxHeight(200);
121 $obj->setMaxWeight(31.5);
122 $obj->setServices(array(
123 'preferredNeighbourEnabled',
124 'preferredLocationEnabled',
125 'visualCheckOfAgeEnabled',
128 'preferredDayEnabled',
129 'preferredTimeEnabled',
130 'disableNeighbourDelivery',
132 'additionalInsuranceEnabled',
133 'cashOnDeliveryEnabled',
134 'individualSenderRequiredmentsEnabled',
136 'noticeNonDeliverability' 138 self::addProduct($obj);
141 $obj->setName(
'DHL Paket Taggleich');
142 $obj->setMinLength(15);
143 $obj->setMaxLength(200);
144 $obj->setMinWidth(11);
145 $obj->setMaxWidth(200);
146 $obj->setMinHeight(1);
147 $obj->setMaxHeight(200);
148 $obj->setMaxWeight(31.5);
149 $obj->setServices(array(
150 'preferredNeighbourEnabled',
151 'preferredLocationEnabled',
152 'visualCheckOfAgeEnabled',
155 'preferredDayEnabled',
156 'preferredTimeEnabled',
157 'disableNeighbourDelivery',
159 'additionalInsuranceEnabled',
161 'cashOnDeliveryEnabled',
162 'individualSenderRequiredmentsEnabled',
164 'noticeNonDeliverability',
165 'returnImmediatlyIfShipmentFailed' 167 self::addProduct($obj);
170 $obj->setName(
'DHL Paket International');
171 $obj->setMinLength(15);
172 $obj->setMaxLength(120);
173 $obj->setMinWidth(11);
174 $obj->setMaxWidth(60);
175 $obj->setMinHeight(1);
176 $obj->setMaxHeight(60);
177 $obj->setMaxWeight(31.5);
178 $obj->setServices(array(
179 'endorsementEnabled',
182 'additionalInsuranceEnabled',
184 'cashOnDeliveryEnabled',
187 self::addProduct($obj);
190 $obj->setName(
'DHL Europapaket');
191 $obj->setMinLength(15);
192 $obj->setMaxLength(120);
193 $obj->setMinWidth(11);
194 $obj->setMaxWidth(60);
195 $obj->setMinHeight(3.5);
196 $obj->setMaxHeight(60);
197 $obj->setMaxWeight(31.5);
198 $obj->setServices(array(
200 'additionalInsuranceEnabled' 202 self::addProduct($obj);
205 $obj->setName(
'DHL Paket Connect');
206 $obj->setMinLength(15);
207 $obj->setMaxLength(120);
208 $obj->setMinWidth(11);
209 $obj->setMaxWidth(60);
210 $obj->setMinHeight(3.5);
211 $obj->setMaxHeight(60);
212 $obj->setMaxWeight(31.5);
213 $obj->setServices(array(
215 'additionalInsuranceEnabled',
218 self::addProduct($obj);
221 $obj->setName(
'DHL Kurier Taggleich');
222 $obj->setMinLength(15);
223 $obj->setMaxLength(200);
224 $obj->setMinWidth(11);
225 $obj->setMaxWidth(200);
226 $obj->setMinHeight(1);
227 $obj->setMaxHeight(200);
228 $obj->setMaxWeight(31.5);
229 $obj->setServices(array(
230 'preferredNeighbourEnabled',
231 'visualCheckOfAgeEnabled',
232 'endorsementEnabled',
234 'dayOfDeliveryEnabled',
235 'deliveryTimeframeEnabled',
236 'shipmentHandlingEnabled',
238 'individualSenderRequiredmentsEnabled' 240 self::addProduct($obj);
243 $obj->setName(
'DHL Kurier Wunschzeit');
244 $obj->setMinLength(15);
245 $obj->setMaxLength(200);
246 $obj->setMinWidth(11);
247 $obj->setMaxWidth(200);
248 $obj->setMinHeight(1);
249 $obj->setMaxHeight(200);
250 $obj->setMaxWeight(31.5);
251 $obj->setServices(array(
252 'preferredNeighbourEnabled',
253 'visualCheckOfAgeEnabled',
254 'endorsementEnabled',
256 'dayOfDeliveryEnabled',
257 'deliveryTimeframeEnabled',
258 'shipmentHandlingEnabled',
260 'individualSenderRequiredmentsEnabled' 262 self::addProduct($obj);
265 $obj->setName(
'DHL Paket Austria');
266 $obj->setAustria(
true);
267 $obj->setMinLength(15);
268 $obj->setMaxLength(120);
269 $obj->setMinWidth(11);
270 $obj->setMaxWidth(60);
271 $obj->setMinHeight(1);
272 $obj->setMaxHeight(60);
273 $obj->setMaxWeight(31.5);
274 $obj->setServices(array(
275 'additionalInsuranceEnabled',
277 'cashOnDeliveryEnabled' 279 self::addProduct($obj);
282 $obj->setName(
'DHL Paket Connect');
283 $obj->setAustria(
true);
284 $obj->setMinLength(15);
285 $obj->setMaxLength(120);
286 $obj->setMinWidth(11);
287 $obj->setMaxWidth(60);
288 $obj->setMinHeight(3.5);
289 $obj->setMaxHeight(60);
290 $obj->setMaxWeight(31.5);
291 $obj->setServices(array(
292 'additionalInsuranceEnabled',
294 'cashOnDeliveryEnabled' 296 self::addProduct($obj);
299 $obj->setName(
'DHL Paket International');
300 $obj->setAustria(
true);
301 $obj->setMinLength(15);
302 $obj->setMaxLength(120);
303 $obj->setMinWidth(11);
304 $obj->setMaxWidth(60);
305 $obj->setMinHeight(1);
306 $obj->setMaxHeight(60);
307 $obj->setMaxWeight(31.5);
308 $obj->setServices(array(
309 'additionalInsuranceEnabled',
311 'cashOnDeliveryEnabled' 313 self::addProduct($obj);
321 private static function isInit() {
330 private static function setInit($init) {
343 return self::$dhlProducts;
351 private static function addProduct($product) {
352 self::$dhlProducts[$product->getType()] = $product;
361 public static function getInfo($productType) {
365 if(! array_key_exists($productType, self::$dhlProducts))
368 return self::$dhlProducts[$productType];
const PRODUCT_TYPE_NATIONAL_PACKAGE_PRIO
const PRODUCT_TYPE_EUROPA_PACKAGE
const PRODUCT_TYPE_PACKED_CONNECT
const PRODUCT_TYPE_SAME_DAY_PACKAGE
const PRODUCT_TYPE_INTERNATIONAL_PACKAGE
const PRODUCT_TYPE_WISH_TIME_MESSENGER
const PRODUCT_TYPE_CONNECT_PACKAGE
const PRODUCT_TYPE_SAME_DAY_MESSENGER
static getInfo($productType)
const PRODUCT_TYPE_AUSTRIA_PACKAGE
const PRODUCT_TYPE_AUSTRIA_INTERNATIONAL_PACKAGE
const PRODUCT_TYPE_NATIONAL_PACKAGE