22 array(
'oxartnum',
'oxarticles', 1, 0, 0),
23 array(
'oxtitle',
'oxarticles', 1, 1, 0),
24 array(
'oxean',
'oxarticles', 0, 0, 0),
25 array(
'oxmpn',
'oxarticles', 0, 0, 0),
26 array(
'oxprice',
'oxarticles', 0, 0, 0),
27 array(
'oxstock',
'oxarticles', 0, 0, 0),
28 array(
'oxid',
'oxarticles', 0, 0, 1)
30 'container2' => array(
31 array(
'oxartnum',
'oxarticles', 1, 0, 0),
32 array(
'oxtitle',
'oxarticles', 1, 1, 0),
33 array(
'oxean',
'oxarticles', 0, 0, 0),
34 array(
'oxmpn',
'oxarticles', 0, 0, 0),
35 array(
'oxprice',
'oxarticles', 0, 0, 0),
36 array(
'oxstock',
'oxarticles', 0, 0, 0),
37 array(
'oxid',
'oxobject2selectlist', 0, 0, 1),
38 array(
'oxid',
'oxarticles', 0, 0, 1)
40 'container3' => array(
41 array(
'oxtitle',
'oxselectlist', 1, 1, 0),
42 array(
'oxsort',
'oxobject2selectlist', 1, 0, 0),
43 array(
'oxident',
'oxselectlist', 0, 0, 0),
44 array(
'oxvaldesc',
'oxselectlist', 0, 0, 0),
45 array(
'oxid',
'oxselectlist', 0, 0, 1)
69 $sQAdd =
" from $sArtTable where 1 ";
70 $sQAdd .=
$myConfig->getConfigParam(
'blVariantsSelection') ?
'' :
" and $sArtTable.oxparentid = '' ";
73 if ($sSynchSelId && $sSelId != $sSynchSelId) {
74 $sQAdd =
" from $sO2CView as oxobject2category left join $sArtTable on ";
75 $sQAdd .=
$myConfig->getConfigParam(
'blVariantsSelection') ?
" ( $sArtTable.oxid=oxobject2category.oxobjectid or $sArtTable.oxparentid=oxobject2category.oxobjectid ) " :
" $sArtTable.oxid=oxobject2category.oxobjectid ";
76 $sQAdd .=
" where oxobject2category.oxcatnid = " . $oDb->quote($sSelId);
78 $sQAdd =
" from $sArtTable left join oxobject2selectlist on $sArtTable.oxid=oxobject2selectlist.oxobjectid ";
79 $sQAdd .=
" where oxobject2selectlist.oxselnid = " . $oDb->quote($sSelId);
83 if ($sSynchSelId && $sSynchSelId != $sSelId) {
85 $sQAdd .=
" and $sArtTable.oxid not in ( select oxobject2selectlist.oxobjectid from oxobject2selectlist ";
86 $sQAdd .=
" where oxobject2selectlist.oxselnid = " . $oDb->quote($sSynchSelId) .
" ) ";
97 $aChosenArt = $this->
_getActionIds(
'oxobject2selectlist.oxid');
107 } elseif (is_array($aChosenArt)) {
108 $sQ =
"delete from oxobject2selectlist where oxobject2selectlist.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray($aChosenArt)) .
") ";
123 $aAddArticle = $this->
_getAll(parent::_addFilter(
"select $sArtTable.oxid " . $this->
_getQuery()));
126 if ($soxId && $soxId !=
"-1" && is_array($aAddArticle)) {
128 foreach ($aAddArticle as $sAdd) {
129 $oNewGroup =
oxNew(
"oxbase");
130 $oNewGroup->init(
"oxobject2selectlist");
131 $oNewGroup->oxobject2selectlist__oxobjectid =
new oxField($sAdd);
132 $oNewGroup->oxobject2selectlist__oxselnid =
new oxField($soxId);
133 $oNewGroup->oxobject2selectlist__oxsort =
new oxField((
int ) $oDb->getOne(
"select max(oxsort) + 1 from oxobject2selectlist where oxobjectid = " . $oDb->quote($sAdd) .
" ",
false,
false));