24 "DeliveryModeDirectDownload" => 0,
25 "DeliveryModeFreight" => 0,
26 "DeliveryModeMail" => 0,
27 "DeliveryModeOwnFleet" => 0,
28 "DeliveryModePickUp" => 0,
30 "FederalExpress" => 1,
45 $sSql =
"DELETE FROM oxobject2delivery WHERE oxdeliveryid = '{$sOxIdParameter}' AND OXTYPE = 'rdfadeliveryset'";
49 foreach ($aRDFaDeliveries as $sDelivery) {
50 $oMapping =
oxNew(
"oxbase");
51 $oMapping->init(
"oxobject2delivery");
52 $oMapping->assign($aParams);
53 $oMapping->oxobject2delivery__oxobjectid =
new oxField($sDelivery);
65 $aRDFaDeliveries = array();
67 foreach ($this->_aRDFaDeliveries as $sName => $iType) {
68 $oDelivery =
new stdClass();
69 $oDelivery->name = $sName;
70 $oDelivery->type = $iType;
71 $oDelivery->checked = in_array($sName, $aAssignedRDFaDeliveries);
72 $aRDFaDeliveries[] = $oDelivery;
75 return $aRDFaDeliveries;
86 $aRDFaDeliveries = array();
87 $sSelect =
'select oxobjectid from oxobject2delivery where oxdeliveryid=' . $oDb->quote(
oxRegistry::getConfig()->getRequestParameter(
"oxid")) .
' and oxtype = "rdfadeliveryset" ';
88 $rs = $oDb->execute($sSelect);
89 if ($rs && $rs->recordCount()) {
91 $aRDFaDeliveries[] = $rs->fields[0];
96 return $aRDFaDeliveries;