22 if ($soxId !=
"-1" && isset($soxId)) {
24 $oNews =
oxNew(
"oxnews");
27 if (!isset($iNewsLang)) {
31 $this->_aViewData[
"newslang"] = $iNewsLang;
32 $oNews->loadInLang($iNewsLang, $soxId);
35 $oLang =
new stdClass();
36 $oLang->sLangDesc = $language;
38 $this->_aViewData[
"otherlang"][$id] = clone $oLang;
42 $this->_aViewData[
"edit"] = $oNews;
46 $this->_aViewData[
"editor"] = $this->
_generateTextEditor(
"100%", 255, $oNews,
"oxnews__oxlongdesc",
"news.tpl.css");
48 return "news_text.tpl";
65 $oNews =
oxNew(
"oxnews");
69 if (!isset($iNewsLang)) {
74 $oNews->loadInLang($iNewsLang, $soxId);
76 $aParams[
'oxnews__oxid'] = null;
82 $oNews->setLanguage(0);
83 $oNews->assign($aParams);
84 $oNews->setLanguage($iNewsLang);