23 if ($soxId !=
"-1" && isset($soxId)) {
25 $oWrapping =
oxNew(
"oxwrapping");
26 $oWrapping->loadInLang($this->_iEditLang, $soxId);
28 $oOtherLang = $oWrapping->getAvailableInLangs();
29 if (!isset($oOtherLang[$this->_iEditLang])) {
31 $oWrapping->loadInLang(key($oOtherLang), $soxId);
33 $this->_aViewData[
"edit"] = $oWrapping;
39 $this->_aViewData[
"posslang"] =
$aLang;
42 foreach ($oOtherLang as $id => $language) {
43 $oLang =
new stdClass();
44 $oLang->sLangDesc = $language;
46 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
50 return "wrapping_main.tpl";
66 if (!isset($aParams[
'oxwrapping__oxactive'])) {
67 $aParams[
'oxwrapping__oxactive'] = 0;
73 $oWrapping =
oxNew(
"oxwrapping");
76 $oWrapping->loadInLang($this->_iEditLang, $soxId);
78 oxRegistry::get(
"oxUtilsPic")->overwritePic($oWrapping,
'oxwrapping',
'oxpic',
'WP',
'0', $aParams, $this->
getConfig()->getPictureDir(
false));
80 $aParams[
'oxwrapping__oxid'] = null;
85 $oWrapping->setLanguage(0);
86 $oWrapping->assign($aParams);
87 $oWrapping->setLanguage($this->_iEditLang);
107 if (!isset($aParams[
'oxwrapping__oxactive'])) {
108 $aParams[
'oxwrapping__oxactive'] = 0;
114 $oWrapping =
oxNew(
"oxwrapping");
116 if ($soxId !=
"-1") {
117 $oWrapping->load($soxId);
119 $aParams[
'oxwrapping__oxid'] = null;
124 $oWrapping->setLanguage(0);
125 $oWrapping->assign($aParams);
126 $oWrapping->setLanguage($this->_iEditLang);