23 $oAttr =
oxNew(
"oxattribute" );
27 if ( $soxId !=
"-1" && isset( $soxId)) {
31 $oAttr->loadInLang( $this->_iEditLang, $soxId );
34 $oOtherLang = $oAttr->getAvailableInLangs();
35 if (!isset($oOtherLang[$this->_iEditLang])) {
37 $oAttr->loadInLang( key($oOtherLang), $soxId );
43 $this->_aViewData[
"posslang"] =
$aLang;
45 foreach ( $oOtherLang as $id => $language) {
46 $oLang=
new stdClass();
47 $oLang->sLangDesc = $language;
49 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
53 $this->_aViewData[
"edit"] = $oAttr;
55 if (
$myConfig->getRequestParameter(
"aoc") ) {
56 $oAttributeMainAjax =
oxNew(
'attribute_main_ajax' );
57 $this->_aViewData[
'oxajax'] = $oAttributeMainAjax->getColumns();
59 return "popups/attribute_main.tpl";
61 return "attribute_main.tpl";
78 $oAttr =
oxNew(
"oxattribute" );
81 $oAttr->loadInLang( $this->_iEditLang, $soxId );
83 $aParams[
'oxattribute__oxid'] = null;
87 $oAttr->setLanguage(0);
88 $oAttr->assign( $aParams);
89 $oAttr->setLanguage($this->_iEditLang);
110 $oAttr =
oxNew(
"oxattribute" );
112 if ( $soxId !=
"-1") {
113 $oAttr->loadInLang( $this->_iEditLang, $soxId );
115 $aParams[
'oxattribute__oxid'] = null;
119 $oAttr->setLanguage(0);
120 $oAttr->assign( $aParams);