15 array(
'oxusername',
'oxuser', 1, 0, 0),
16 array(
'oxlname',
'oxuser', 0, 0, 0),
17 array(
'oxfname',
'oxuser', 0, 0, 0),
18 array(
'oxstreet',
'oxuser', 0, 0, 0),
19 array(
'oxstreetnr',
'oxuser', 0, 0, 0),
20 array(
'oxcity',
'oxuser', 0, 0, 0),
21 array(
'oxzip',
'oxuser', 0, 0, 0),
22 array(
'oxfon',
'oxuser', 0, 0, 0),
23 array(
'oxbirthdate',
'oxuser', 0, 0, 0),
24 array(
'oxid',
'oxuser', 0, 0, 1),
26 'container2' => array(
27 array(
'oxusername',
'oxuser', 1, 0, 0),
28 array(
'oxlname',
'oxuser', 0, 0, 0),
29 array(
'oxfname',
'oxuser', 0, 0, 0),
30 array(
'oxstreet',
'oxuser', 0, 0, 0),
31 array(
'oxstreetnr',
'oxuser', 0, 0, 0),
32 array(
'oxcity',
'oxuser', 0, 0, 0),
33 array(
'oxzip',
'oxuser', 0, 0, 0),
34 array(
'oxfon',
'oxuser', 0, 0, 0),
35 array(
'oxbirthdate',
'oxuser', 0, 0, 0),
36 array(
'oxid',
'oxobject2group', 0, 0, 1),
57 $sQAdd =
" from $sUserTable where 1 ";
59 $sQAdd =
" from $sUserTable, oxobject2group where $sUserTable.oxid=oxobject2group.oxobjectid and ";
60 $sQAdd .=
" oxobject2group.oxgroupsid = " . $oDb->quote($sRoleId);
63 if ($sSynchRoleId && $sSynchRoleId != $sRoleId) {
64 $sQAdd .=
" and $sUserTable.oxid not in ( select $sUserTable.oxid from $sUserTable, oxobject2group where $sUserTable.oxid=oxobject2group.oxobjectid and ";
65 $sQAdd .=
" oxobject2group.oxgroupsid = " . $oDb->quote($sSynchRoleId);
66 if (!
$myConfig->getConfigParam(
'blMallUsers')) {
67 $sQAdd .=
" and $sUserTable.oxshopid = '" .
$myConfig->getShopId() .
"' ";
72 if (!
$myConfig->getConfigParam(
'blMallUsers')) {
73 $sQAdd .=
" and $sUserTable.oxshopid = '" .
$myConfig->getShopId() .
"' ";
91 } elseif ($aRemoveGroups && is_array($aRemoveGroups)) {
92 $sQ =
"delete from oxobject2group where oxobject2group.oxid in (" . implode(
", ",
oxDb::getInstance()->quoteArray($aRemoveGroups)) .
") ";
109 if ($soxId && $soxId !=
"-1" && is_array($aAddUsers)) {
110 foreach ($aAddUsers as $sAdduser) {
111 $oNewGroup =
oxNew(
"oxobject2group");
112 $oNewGroup->oxobject2group__oxobjectid =
new oxField($sAdduser);
113 $oNewGroup->oxobject2group__oxgroupsid =
new oxField($soxId);