24 $oAttr =
oxNew(
"oxattribute");
28 if ($soxId !=
"-1" && isset($soxId)) {
32 $oAttr->loadInLang($this->_iEditLang, $soxId);
35 $oOtherLang = $oAttr->getAvailableInLangs();
36 if (!isset($oOtherLang[$this->_iEditLang])) {
38 $oAttr->loadInLang(key($oOtherLang), $soxId);
44 $this->_aViewData[
"posslang"] =
$aLang;
47 foreach ($oOtherLang as $id => $language) {
48 $oLang =
new stdClass();
49 $oLang->sLangDesc = $language;
51 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
55 $this->_aViewData[
"edit"] = $oAttr;
57 if (
$myConfig->getRequestParameter(
"aoc")) {
58 $oAttributeMainAjax =
oxNew(
'attribute_main_ajax');
59 $this->_aViewData[
'oxajax'] = $oAttributeMainAjax->getColumns();
61 return "popups/attribute_main.tpl";
64 return "attribute_main.tpl";
81 $oAttr =
oxNew(
"oxattribute");
84 $oAttr->loadInLang($this->_iEditLang, $soxId);
86 $aParams[
'oxattribute__oxid'] = null;
91 $oAttr->setLanguage(0);
92 $oAttr->assign($aParams);
93 $oAttr->setLanguage($this->_iEditLang);
114 $oAttr =
oxNew(
"oxattribute");
116 if ($soxId !=
"-1") {
117 $oAttr->loadInLang($this->_iEditLang, $soxId);
119 $aParams[
'oxattribute__oxid'] = null;
123 $oAttr->setLanguage(0);
124 $oAttr->assign($aParams);