22 if ( $soxId !=
"-1" && isset( $soxId)) {
24 $oGroup =
oxNew(
"oxgroups" );
25 $oGroup->loadInLang( $this->_iEditLang, $soxId);
27 $oOtherLang = $oGroup->getAvailableInLangs();
28 if (!isset($oOtherLang[$this->_iEditLang])) {
30 $oGroup->loadInLang( key($oOtherLang), $soxId );
33 $this->_aViewData[
"edit"] = $oGroup;
39 $this->_aViewData[
"posslang"] =
$aLang;
41 foreach ( $oOtherLang as $id => $language) {
42 $oLang=
new stdClass();
43 $oLang->sLangDesc = $language;
45 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
49 $oUsergroupMainAjax =
oxNew(
'usergroup_main_ajax' );
50 $this->_aViewData[
'oxajax'] = $oUsergroupMainAjax->getColumns();
52 return "popups/usergroup_main.tpl";
54 return "usergroup_main.tpl";
70 if ( !isset( $aParams[
'oxgroups__oxactive'] ) ) {
71 $aParams[
'oxgroups__oxactive'] = 0;
74 $oGroup =
oxNew(
"oxgroups" );
75 if ( $soxId !=
"-1") {
76 $oGroup->load( $soxId );
78 $aParams[
'oxgroups__oxid'] = null;
81 $oGroup->setLanguage( 0 );
82 $oGroup->assign( $aParams);
83 $oGroup->setLanguage( $this->_iEditLang );