14 array(
'oxtitle',
'oxcountry', 1, 1, 0 ),
15 array(
'oxisoalpha2',
'oxcountry', 1, 0, 0 ),
16 array(
'oxisoalpha3',
'oxcountry', 0, 0, 0 ),
17 array(
'oxunnum3',
'oxcountry', 0, 0, 0 ),
18 array(
'oxid',
'oxcountry', 0, 0, 1 )
20 'container2' => array(
21 array(
'oxtitle',
'oxcountry', 1, 1, 0 ),
22 array(
'oxisoalpha2',
'oxcountry', 1, 0, 0 ),
23 array(
'oxisoalpha3',
'oxcountry', 0, 0, 0 ),
24 array(
'oxunnum3',
'oxcountry', 0, 0, 0 ),
25 array(
'oxid',
'oxobject2delivery', 0, 0, 1 )
37 $sId = $this->
getConfig()->getRequestParameter(
'oxid' );
38 $sSynchId = $this->
getConfig()->getRequestParameter(
'synchoxid' );
44 $sQAdd =
" from $sCountryTable where $sCountryTable.oxactive = '1' ";
46 $sQAdd =
" from oxobject2delivery, $sCountryTable where oxobject2delivery.oxdeliveryid = ".$oDb->quote( $sId );
47 $sQAdd .=
" and oxobject2delivery.oxobjectid = $sCountryTable.oxid and oxobject2delivery.oxtype = 'oxdelset' ";
50 if ( $sSynchId && $sSynchId != $sId) {
51 $sQAdd .=
"and $sCountryTable.oxid not in ( select $sCountryTable.oxid from oxobject2delivery, $sCountryTable where oxobject2delivery.oxdeliveryid = ".$oDb->quote( $sSynchId );
52 $sQAdd .=
"and oxobject2delivery.oxobjectid = $sCountryTable.oxid and oxobject2delivery.oxtype = 'oxdelset' ) ";
65 $aChosenCntr = $this->
_getActionIds(
'oxobject2delivery.oxid' );
67 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
72 } elseif ( is_array( $aChosenCntr ) ) {
73 $sQ =
"delete from oxobject2delivery where oxobject2delivery.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray( $aChosenCntr ) ) .
") ";
86 $soxId = $this->
getConfig()->getRequestParameter(
'synchoxid');
89 if ( $this->
getConfig()->getRequestParameter(
'all' ) ) {
94 if ( $soxId && $soxId !=
"-1" && is_array( $aChosenCntr ) ) {
95 foreach ( $aChosenCntr as $sChosenCntr) {
96 $oObject2Delivery =
oxNew(
'oxbase' );
97 $oObject2Delivery->init(
'oxobject2delivery' );
98 $oObject2Delivery->oxobject2delivery__oxdeliveryid =
new oxField($soxId);
99 $oObject2Delivery->oxobject2delivery__oxobjectid =
new oxField($sChosenCntr);
100 $oObject2Delivery->oxobject2delivery__oxtype =
new oxField(
"oxdelset");
101 $oObject2Delivery->save();