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()) {
104 $this->lng->loadLanguageModule($this->news_item->getContextObjType());
106 $this->news_item->getContextObjType(),
107 $this->news_item->getContent(),
108 $this->news_item->getContentTextIsLangVar()
112 $content = $this->
makeClickable($this->news_item->getContent());
113 if (!$this->news_item->getContentHtml()) {
114 $content =
"<p>" . nl2br($content) .
"</p>";
116 $content .= $this->news_item->getContentLong();
131 if (is_int(strpos($a_str,
"</a>")) && is_int(strpos($a_str,
"<a"))) {
153 include_once(
"./Services/Link/classes/class.ilLink.php");
if(isset($_REQUEST['delete'])) $list
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 determineNewsContent($a_context_obj_type, $a_content, $a_is_lang_var)
Determine new content.
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="")