ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilForumNewsRendererGUI Class Reference

Forum news renderer. More...

+ Inheritance diagram for ilForumNewsRendererGUI:
+ Collaboration diagram for ilForumNewsRendererGUI:

Public Member Functions

 getObjectLink ()
 Get object link. More...
 
- Public Member Functions inherited from ilNewsDefaultRendererGUI
 __construct ()
 Constructor. More...
 
 setNewsItem (ilNewsItem $a_news_item, $a_news_ref_id)
 Set news item.
Parameters
ilNewsItem$a_news_item
int$a_news_ref_id
More...
 
 getNewsItem ()
 Get news item. More...
 
 getNewsRefId ()
 Get news ref id. More...
 
 setLanguage ($a_lang_key)
 Language key.
Parameters
$iilNewsItem news item
More...
 
 getTimelineContent ()
 Render content for timeline.
Returns
string html
More...
 
 getDetailContent ()
 Render content for detail view.
Returns
string html
More...
 
 makeClickable ($a_str)
 Make clickable. More...
 
 addTimelineActions (ilAdvancedSelectionListGUI $list)
 
 getObjectLink ()
 Get object link. More...
 

Additional Inherited Members

- Protected Attributes inherited from ilNewsDefaultRendererGUI
 $lng_key
 
 $ctrl
 
 $lng
 
 $news_item
 
 $news_ref_id
 

Detailed Description

Forum news renderer.

Author
Alex Killing alex..nosp@m.kill.nosp@m.ing@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 13 of file class.ilForumNewsRendererGUI.php.

Member Function Documentation

◆ getObjectLink()

ilForumNewsRendererGUI::getObjectLink ( )

Get object link.

Returns
string link href url

Implements ilNewsRendererGUI.

Definition at line 20 of file class.ilForumNewsRendererGUI.php.

References $n, ilLink\_getLink(), array, ilNewsDefaultRendererGUI\getNewsItem(), and ilNewsDefaultRendererGUI\getNewsRefId().

21  {
22  include_once("./Services/Link/classes/class.ilLink.php");
23  $n = $this->getNewsItem();
24  if ($n->getContextSubObjType() == "pos"
25  && $n->getContextSubObjId() > 0)
26  {
27  include_once("./Modules/Forum/classes/class.ilObjForumAccess.php");
28  $pos = $n->getContextSubObjId();
29  $thread = ilObjForumAccess::_getThreadForPosting($pos);
30  if ($thread > 0)
31  {
32  $add = "_".$thread."_".$pos;
33  }
34  }
35 
36  return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
37  }
$n
Definition: RandomTest.php:80
Create styles array
The data for the language used.
+ Here is the call graph for this function:

The documentation for this class was generated from the following file: