22 if ($soxId !=
"-1" && isset($soxId)) {
24 $oManufacturer =
oxNew(
"oxmanufacturer");
25 $oManufacturer->loadInLang($this->_iEditLang, $soxId);
27 $oOtherLang = $oManufacturer->getAvailableInLangs();
28 if (!isset($oOtherLang[$this->_iEditLang])) {
30 $oManufacturer->loadInLang(key($oOtherLang), $soxId);
32 $this->_aViewData[
"edit"] = $oManufacturer;
38 if ($oManufacturer->isDerived()) {
39 $this->_aViewData[
'readonly'] =
true;
45 $this->_aViewData[
"posslang"] =
$aLang;
48 foreach ($oOtherLang as $id => $language) {
49 $oLang =
new stdClass();
50 $oLang->sLangDesc = $language;
52 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
57 $oManufacturerMainAjax =
oxNew(
'manufacturer_main_ajax');
58 $this->_aViewData[
'oxajax'] = $oManufacturerMainAjax->getColumns();
60 return "popups/manufacturer_main.tpl";
63 return "manufacturer_main.tpl";
78 if (!isset($aParams[
'oxmanufacturers__oxactive'])) {
79 $aParams[
'oxmanufacturers__oxactive'] = 0;
84 $aParams[
'oxmanufacturers__oxshopid'] = $sShopID;
86 $oManufacturer =
oxNew(
"oxmanufacturer");
89 $oManufacturer->loadInLang($this->_iEditLang, $soxId);
91 $aParams[
'oxmanufacturers__oxid'] = null;
96 $oManufacturer->setLanguage(0);
97 $oManufacturer->assign($aParams);
98 $oManufacturer->setLanguage($this->_iEditLang);
99 $oManufacturer =
oxRegistry::get(
"oxUtilsFile")->processFiles($oManufacturer);
100 $oManufacturer->save();
116 if (!isset($aParams[
'oxmanufacturers__oxactive'])) {
117 $aParams[
'oxmanufacturers__oxactive'] = 0;
122 $aParams[
'oxmanufacturers__oxshopid'] = $sShopID;
124 $oManufacturer =
oxNew(
"oxmanufacturer");
126 if ($soxId !=
"-1") {
127 $oManufacturer->loadInLang($this->_iEditLang, $soxId);
129 $aParams[
'oxmanufacturers__oxid'] = null;
134 $oManufacturer->setLanguage(0);
135 $oManufacturer->assign($aParams);
136 $oManufacturer->setLanguage($this->_iEditLang);
137 $oManufacturer =
oxRegistry::get(
"oxUtilsFile")->processFiles($oManufacturer);
138 $oManufacturer->save();