21 if ( $soxId !=
"-1" && isset( $soxId)) {
23 $oManufacturer =
oxNew(
"oxmanufacturer" );
24 $oManufacturer->loadInLang( $this->_iEditLang, $soxId );
26 $oOtherLang = $oManufacturer->getAvailableInLangs();
27 if (!isset($oOtherLang[$this->_iEditLang])) {
29 $oManufacturer->loadInLang( key($oOtherLang), $soxId );
31 $this->_aViewData[
"edit"] = $oManufacturer;
37 if ($oManufacturer->isDerived())
38 $this->_aViewData[
'readonly'] =
true;
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;
54 $oManufacturerMainAjax =
oxNew(
'manufacturer_main_ajax' );
55 $this->_aViewData[
'oxajax'] = $oManufacturerMainAjax->getColumns();
57 return "popups/manufacturer_main.tpl";
59 return "manufacturer_main.tpl";
74 if ( !isset( $aParams[
'oxmanufacturers__oxactive']))
75 $aParams[
'oxmanufacturers__oxactive'] = 0;
79 $aParams[
'oxmanufacturers__oxshopid'] = $sShopID;
81 $oManufacturer =
oxNew(
"oxmanufacturer" );
84 $oManufacturer->loadInLang( $this->_iEditLang, $soxId );
86 $aParams[
'oxmanufacturers__oxid'] = null;
91 $oManufacturer->setLanguage(0);
92 $oManufacturer->assign( $aParams);
93 $oManufacturer->setLanguage($this->_iEditLang);
94 $oManufacturer =
oxRegistry::get(
"oxUtilsFile")->processFiles( $oManufacturer );
95 $oManufacturer->save();
111 if ( !isset( $aParams[
'oxmanufacturers__oxactive']))
112 $aParams[
'oxmanufacturers__oxactive'] = 0;
116 $aParams[
'oxmanufacturers__oxshopid'] = $sShopID;
118 $oManufacturer =
oxNew(
"oxmanufacturer" );
121 $oManufacturer->loadInLang( $this->_iEditLang, $soxId );
123 $aParams[
'oxmanufacturers__oxid'] = null;
128 $oManufacturer->setLanguage(0);
129 $oManufacturer->assign( $aParams);
130 $oManufacturer->setLanguage($this->_iEditLang);
131 $oManufacturer =
oxRegistry::get(
"oxUtilsFile")->processFiles( $oManufacturer );
132 $oManufacturer->save();