20 if ( $soxId !=
"-1" && isset( $soxId)) {
22 $oNews =
oxNew(
"oxnews" );
25 if (!isset($iNewsLang))
28 $this->_aViewData[
"newslang"] = $iNewsLang;
29 $oNews->loadInLang( $iNewsLang, $soxId );
32 $oLang=
new stdClass();
33 $oLang->sLangDesc = $language;
35 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
39 $this->_aViewData[
"edit"] = $oNews;
43 $this->_aViewData[
"editor"] = $this->
_generateTextEditor(
"100%", 255, $oNews,
"oxnews__oxlongdesc",
"news.tpl.css");
45 return "news_text.tpl";
62 $oNews =
oxNew(
"oxnews" );
66 if (!isset($iNewsLang))
70 $oNews->loadInLang( $iNewsLang, $soxId );
72 $aParams[
'oxnews__oxid'] = null;
78 $oNews->setLanguage(0);
79 $oNews->assign( $aParams);
80 $oNews->setLanguage($iNewsLang);