22         if ($soxId != 
"-1" && isset($soxId)) {
 
   24             $oVendor = 
oxNew(
"oxvendor");
 
   25             $oVendor->loadInLang($this->_iEditLang, $soxId);
 
   27             $oOtherLang = $oVendor->getAvailableInLangs();
 
   28             if (!isset($oOtherLang[$this->_iEditLang])) {
 
   30                 $oVendor->loadInLang(key($oOtherLang), $soxId);
 
   32             $this->_aViewData[
"edit"] = $oVendor;
 
   38             if ($oVendor->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             $oVendorMainAjax = 
oxNew(
'vendor_main_ajax');
 
   58             $this->_aViewData[
'oxajax'] = $oVendorMainAjax->getColumns();
 
   60             return "popups/vendor_main.tpl";
 
   63         return "vendor_main.tpl";
 
   78         if (!isset($aParams[
'oxvendor__oxactive'])) {
 
   79             $aParams[
'oxvendor__oxactive'] = 0;
 
   85         $oVendor = 
oxNew(
"oxvendor");
 
   87             $oVendor->loadInLang($this->_iEditLang, $soxId);
 
   89             $aParams[
'oxvendor__oxid'] = null;
 
   93         $oVendor->setLanguage(0);
 
   94         $oVendor->assign($aParams);
 
   95         $oVendor->setLanguage($this->_iEditLang);
 
  113         if (!isset($aParams[
'oxvendor__oxactive'])) {
 
  114             $aParams[
'oxvendor__oxactive'] = 0;
 
  120         $oVendor = 
oxNew(
"oxvendor");
 
  122         if ($soxId != 
"-1") {
 
  123             $oVendor->loadInLang($this->_iEditLang, $soxId);
 
  125             $aParams[
'oxvendor__oxid'] = null;
 
  129         $oVendor->setLanguage(0);
 
  130         $oVendor->assign($aParams);
 
  131         $oVendor->setLanguage($this->_iEditLang);