22 if ( $soxId !=
"-1" && isset( $soxId)) {
24 $oWrapping =
oxNew(
"oxwrapping" );
25 $oWrapping->loadInLang( $this->_iEditLang, $soxId );
27 $oOtherLang = $oWrapping->getAvailableInLangs();
28 if (!isset($oOtherLang[$this->_iEditLang])) {
30 $oWrapping->loadInLang( key($oOtherLang), $soxId );
32 $this->_aViewData[
"edit"] = $oWrapping;
38 $this->_aViewData[
"posslang"] =
$aLang;
40 foreach ( $oOtherLang as $id => $language) {
41 $oLang=
new stdClass();
42 $oLang->sLangDesc = $language;
44 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
48 return "wrapping_main.tpl";
64 if ( !isset( $aParams[
'oxwrapping__oxactive']))
65 $aParams[
'oxwrapping__oxactive'] = 0;
70 $oWrapping =
oxNew(
"oxwrapping" );
72 if ( $soxId !=
"-1") {
73 $oWrapping->loadInLang( $this->_iEditLang, $soxId );
75 oxRegistry::get(
"oxUtilsPic")->overwritePic( $oWrapping,
'oxwrapping',
'oxpic',
'WP',
'0', $aParams, $this->
getConfig()->getPictureDir(
false) );
77 $aParams[
'oxwrapping__oxid'] = null;
81 $oWrapping->setLanguage(0);
82 $oWrapping->assign( $aParams);
83 $oWrapping->setLanguage($this->_iEditLang);
85 $oWrapping =
oxRegistry::get(
"oxUtilsFile")->processFiles( $oWrapping );
103 if ( !isset( $aParams[
'oxwrapping__oxactive']))
104 $aParams[
'oxwrapping__oxactive'] = 0;
109 $oWrapping =
oxNew(
"oxwrapping" );
111 $oWrapping->load( $soxId);
113 $aParams[
'oxwrapping__oxid'] = null;
117 $oWrapping->setLanguage(0);
118 $oWrapping->assign( $aParams);
119 $oWrapping->setLanguage($this->_iEditLang);
121 $oWrapping =
oxRegistry::get(
"oxUtilsFile")->processFiles( $oWrapping );