24 if ($soxId !=
"-1" && isset($soxId)) {
26 $oLinks =
oxNew(
"oxlinks", getViewName(
'oxlinks'));
27 $oLinks->loadInLang($this->_iEditLang, $soxId);
29 $oOtherLang = $oLinks->getAvailableInLangs();
30 if (!isset($oOtherLang[$this->_iEditLang])) {
32 $oLinks->loadInLang(key($oOtherLang), $soxId);
34 $this->_aViewData[
"edit"] = $oLinks;
37 $this->_aViewData[
"posslang"] = array_diff(
oxRegistry::getLang()->getLanguageNames(), $oOtherLang);
39 foreach ($oOtherLang as $id => $language) {
40 $oLang =
new stdClass();
41 $oLang->sLangDesc = $language;
43 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
56 return "adminlinks_main.tpl";
69 if (!isset($aParams[
'oxlinks__oxactive'])) {
70 $aParams[
'oxlinks__oxactive'] = 0;
75 if (isset($aParams[
'oxlinks__oxurldesc']) && strlen($aParams[
'oxlinks__oxurldesc']) == 0) {
76 $aParams[
'oxlinks__oxurldesc'] .=
" ";
79 if (!$aParams[
'oxlinks__oxinsert']) {
83 if ($sDate ==
"simpleDateFormat") {
84 $aParams[
'oxlinks__oxinsert'] = date(
"Y-m-d");
86 $aParams[
'oxlinks__oxinsert'] = $sDate;
91 $oLinks =
oxNew(
"oxlinks", getViewName(
'oxlinks'));
95 $oLinks->loadInLang($iEditLanguage, $soxId);
98 $aParams[
'oxlinks__oxid'] = null;
103 $oLinks->setLanguage(0);
104 $oLinks->assign($aParams);
105 $oLinks->setLanguage($iEditLanguage);
124 if (!isset($aParams[
'oxlinks__oxactive'])) {
125 $aParams[
'oxlinks__oxactive'] = 0;
130 $aParams[
'oxlinks__oxshopid'] = $sShopID;
131 $oLinks =
oxNew(
"oxlinks", getViewName(
'oxlinks'));
134 if ($soxId !=
"-1") {
135 $oLinks->loadInLang($iEditLanguage, $soxId);
137 $aParams[
'oxlinks__oxid'] = null;
143 $oLinks->setLanguage(0);
144 $oLinks->assign($aParams);