23 "DeliveryModeDirectDownload" => 0,
24 "DeliveryModeFreight" => 0,
25 "DeliveryModeMail" => 0,
26 "DeliveryModeOwnFleet" => 0,
27 "DeliveryModePickUp" => 0,
29 "FederalExpress" => 1,
45 $oDb->execute(
"DELETE FROM oxobject2delivery WHERE oxdeliveryid = '".
oxConfig::getParameter(
"oxid").
"' AND OXTYPE = 'rdfadeliveryset'");
48 foreach ( $aRDFaDeliveries as $sDelivery ) {
49 $oMapping =
oxNew(
"oxbase");
50 $oMapping->init(
"oxobject2delivery");
51 $oMapping->assign($aParams);
52 $oMapping->oxobject2delivery__oxobjectid =
new oxField($sDelivery);
64 $aRDFaDeliveries = array();
66 foreach ($this->_aRDFaDeliveries as $sName => $iType) {
67 $oDelivery =
new stdClass();
68 $oDelivery->name = $sName;
69 $oDelivery->type = $iType;
70 $oDelivery->checked = in_array($sName, $aAssignedRDFaDeliveries);
71 $aRDFaDeliveries[] = $oDelivery;
73 return $aRDFaDeliveries;
84 $aRDFaDeliveries = array();
85 $sSelect =
'select oxobjectid from oxobject2delivery where oxdeliveryid='.$oDb->quote(
oxConfig::getParameter(
"oxid") ).
' and oxtype = "rdfadeliveryset" ';
86 $rs = $oDb->execute( $sSelect );
87 if ( $rs && $rs->recordCount()) {
89 $aRDFaDeliveries[] = $rs->fields[0];
93 return $aRDFaDeliveries;