-
Notifications
You must be signed in to change notification settings - Fork 0
/
DPD_ProductAndServiceData.php
26 lines (24 loc) · 1.42 KB
/
DPD_ProductAndServiceData.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php
function isDPD_ProductAndServiceData($object){
return (get_class($object) == "DPD_ProductAndServiceData");
}
class DPD_ProductAndServiceData extends MVG_SimpleClass{
private $_arrVariableMapper = array(
"orderType" => array( "mandatory" => true, "pattern" => "/^(consignment|collection request order|pickup information)$/"),
"saturdayDelivery" => array( "mandatory" => false, "pattern" => "/^(0|1)$/"),
"exWorksDelivery" => array( "mandatory" => false, "pattern" => "/^(0|1)$/"),
"guarantee" => array( "mandatory" => false, "pattern" => "/^(0|1)$/"),
"personalDelivery" => array( "mandatory" => false, "function" => "isDPD_PersonalDelivery"),
"pickup" => array( "mandatory" => false, "function" => "isDPD_Pickup"),
"parcelShopDelivery" => array( "mandatory" => false, "function" => "isDPD_ParcelshopDelivery"),
"predict" => array( "mandatory" => false, "function" => "isDPD_Notification"),
"personalDeliveryNotification" => array( "mandatory" => false, "function" => "isDPD_Notification"),
"proactiveNotification" => array( "mandatory" => false, "array" => "isDPD_ProactiveNotification"),
"delivery" => array( "mandatory" => false, "function" => "isDPD_Delivery"),
"invoiceAddress" => array( "mandatory" => false, "function" => "isDPD_Address")
);
function __construct($arrData){
parent::__construct(get_class($this), $this->_arrVariableMapper, $arrData);
}
}
?>