5 include_once(
"./Services/News/interfaces/interface.ilNewsRendererGUI.php");
47 $this->ctrl = $DIC->ctrl();
48 $this->lng = $DIC->language();
56 $this->news_item = $a_news_item;
57 $this->news_ref_id = $a_news_ref_id;
86 $this->lng_key = $a_lang_key;
103 if ($this->news_item->getContentTextIsLangVar())
105 $this->lng->loadLanguageModule($this->news_item->getContextObjType());
106 return $this->lng->txt($this->news_item->getContent());
109 $content = $this->
makeClickable($this->news_item->getContent());
110 if (!$this->news_item->getContentHtml())
112 $content =
"<p>".nl2br($content).
"</p>";
114 $content.= $this->news_item->getContentLong();
129 if (is_int(strpos($a_str,
"</a>")) && is_int(strpos($a_str,
"<a")))
153 include_once(
"./Services/Link/classes/class.ilLink.php");
getNewsRefId()
Get news ref id.
getDetailContent()
Render content for detail view.string html
getObjectLink()
Get object link.
makeClickable($a_str)
Make clickable.
getTimelineContent()
Render content for timeline.string html
setLanguage($a_lang_key)
Language key.ilNewsItem news item
getNewsItem()
Get news item.
setNewsItem(ilNewsItem $a_news_item, $a_news_ref_id)
Set news item.
static makeClickable($a_text, $detectGotoLinks=false)
makeClickable In Texten enthaltene URLs und Mail-Adressen klickbar machen
addTimelineActions(ilAdvancedSelectionListGUI $list)
User interface class for advanced drop-down selection lists.
__construct()
Constructor.
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")