24 if ( $soxId !=
"-1" && isset( $soxId)) {
26 $oCountry =
oxNew(
"oxcountry" );
27 $oCountry->loadInLang( $this->_iEditLang, $soxId );
29 if ($oCountry->isForeignCountry()) {
30 $this->_aViewData[
"blForeignCountry"] =
true;
32 $this->_aViewData[
"blForeignCountry"] =
false;
35 $oOtherLang = $oCountry->getAvailableInLangs();
36 if (!isset($oOtherLang[$this->_iEditLang])) {
38 $oCountry->loadInLang( key($oOtherLang), $soxId );
40 $this->_aViewData[
"edit"] = $oCountry;
45 $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;
54 $this->_aViewData[
"blForeignCountry"] =
true;
57 return "country_main.tpl";
75 if ( !isset( $aParams[
'oxcountry__oxactive']))
76 $aParams[
'oxcountry__oxactive'] = 0;
78 $oCountry =
oxNew(
"oxcountry" );
80 if ( $soxId !=
"-1") {
81 $oCountry->loadInLang( $this->_iEditLang, $soxId );
83 $aParams[
'oxcountry__oxid'] = null;
87 $oCountry->setLanguage(0);
88 $oCountry->assign( $aParams );
89 $oCountry->setLanguage($this->_iEditLang);
110 if ( !isset( $aParams[
'oxcountry__oxactive']))
111 $aParams[
'oxcountry__oxactive'] = 0;
113 $oCountry =
oxNew(
"oxcountry" );
116 $oCountry->loadInLang( $this->_iEditLang, $soxId );
118 $aParams[
'oxcountry__oxid'] = null;
120 $oCountry->setLanguage(0);
121 $oCountry->assign( $aParams);
122 $oCountry->setLanguage($this->_iEditLang);