15 array(
'oxtitle',
'oxselectlist', 1, 1, 0),
16 array(
'oxident',
'oxselectlist', 1, 0, 0),
17 array(
'oxvaldesc',
'oxselectlist', 1, 0, 0),
18 array(
'oxid',
'oxselectlist', 0, 0, 1)
20 'container2' => array(
21 array(
'oxtitle',
'oxselectlist', 1, 1, 0),
22 array(
'oxident',
'oxselectlist', 1, 0, 0),
23 array(
'oxvaldesc',
'oxselectlist', 1, 0, 0),
24 array(
'oxid',
'oxobject2selectlist', 0, 0, 1)
42 $sOxid = ($sArtId) ? $sArtId : $sSynchArtId;
43 $sQ =
"select oxparentid from {$sArtViewName} where oxid = " . $oDb->quote($sOxid) .
" and oxparentid != '' ";
44 $sQ .=
"and (select count(oxobjectid) from oxobject2selectlist " .
45 "where oxobjectid = " . $oDb->quote($sOxid) .
") = 0";
46 $sParentId =
oxDb::getDb()->getOne($sQ,
false,
false);
49 $sQAdd =
" from oxobject2selectlist left join {$sSLViewName} " .
50 "on {$sSLViewName}.oxid=oxobject2selectlist.oxselnid " .
51 "where oxobject2selectlist.oxobjectid = " . $oDb->quote($sOxid) .
" ";
53 $sQAdd .=
"or oxobject2selectlist.oxobjectid = " . $oDb->quote($sParentId) .
" ";
57 $sQAdd =
" from {$sSLViewName} " .
58 "where {$sSLViewName}.oxid not in ( select oxobject2selectlist.oxselnid {$sQAdd} ) ";
69 $aChosenArt = $this->
_getActionIds(
'oxobject2selectlist.oxid');
74 } elseif (is_array($aChosenArt)) {
76 $sQ =
"delete from oxobject2selectlist " .
77 "where oxobject2selectlist.oxid in (" . $sChosenArticles .
") ";
97 if ($soxId && $soxId !=
"-1" && is_array($aAddSel)) {
99 foreach ($aAddSel as $sAdd) {
100 $oNew =
oxNew(
"oxbase");
101 $oNew->init(
"oxobject2selectlist");
102 $sObjectIdField =
'oxobject2selectlist__oxobjectid';
103 $sSelectetionIdField =
'oxobject2selectlist__oxselnid';
104 $sOxSortField =
'oxobject2selectlist__oxsort';
105 $oNew->$sObjectIdField =
new oxField($soxId);
106 $oNew->$sSelectetionIdField =
new oxField($sAdd);
107 $sSql =
"select max(oxsort) + 1 from oxobject2selectlist where oxobjectid = {$oDb->quote($soxId)} ";
108 $oNew->$sOxSortField =
new oxField((
int ) $oDb->getOne($sSql,
false,
false));