25         if ($soxId != 
"-1" && isset($soxId)) {
 
   27             $oCountry = 
oxNew(
"oxcountry");
 
   28             $oCountry->loadInLang($this->_iEditLang, $soxId);
 
   30             if ($oCountry->isForeignCountry()) {
 
   31                 $this->_aViewData[
"blForeignCountry"] = 
true;
 
   33                 $this->_aViewData[
"blForeignCountry"] = 
false;
 
   36             $oOtherLang = $oCountry->getAvailableInLangs();
 
   37             if (!isset($oOtherLang[$this->_iEditLang])) {
 
   39                 $oCountry->loadInLang(key($oOtherLang), $soxId);
 
   41             $this->_aViewData[
"edit"] = $oCountry;
 
   46                 $this->_aViewData[
"posslang"] = 
$aLang;
 
   49             foreach ($oOtherLang as $id => $language) {
 
   50                 $oLang = 
new stdClass();
 
   51                 $oLang->sLangDesc = $language;
 
   53                 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
 
   56             $this->_aViewData[
"blForeignCountry"] = 
true;
 
   59         return "country_main.tpl";
 
   77         if (!isset($aParams[
'oxcountry__oxactive'])) {
 
   78             $aParams[
'oxcountry__oxactive'] = 0;
 
   81         $oCountry = 
oxNew(
"oxcountry");
 
   84             $oCountry->loadInLang($this->_iEditLang, $soxId);
 
   86             $aParams[
'oxcountry__oxid'] = null;
 
   90         $oCountry->setLanguage(0);
 
   91         $oCountry->assign($aParams);
 
   92         $oCountry->setLanguage($this->_iEditLang);
 
  113         if (!isset($aParams[
'oxcountry__oxactive'])) {
 
  114             $aParams[
'oxcountry__oxactive'] = 0;
 
  117         $oCountry = 
oxNew(
"oxcountry");
 
  119         if ($soxId != 
"-1") {
 
  120             $oCountry->loadInLang($this->_iEditLang, $soxId);
 
  122             $aParams[
'oxcountry__oxid'] = null;
 
  126         $oCountry->setLanguage(0);
 
  127         $oCountry->assign($aParams);
 
  128         $oCountry->setLanguage($this->_iEditLang);