ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilLearningModuleNewsRendererGUI Class Reference

Learning Module news renderer. More...

+ Inheritance diagram for ilLearningModuleNewsRendererGUI:
+ Collaboration diagram for ilLearningModuleNewsRendererGUI:

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

Learning Module 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.ilLearningModuleNewsRendererGUI.php.

Member Function Documentation

◆ getObjectLink()

ilLearningModuleNewsRendererGUI::getObjectLink ( )

Get object link.

Returns
string link href url

Implements ilNewsRendererGUI.

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

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

21  {
22  include_once("./Services/Link/classes/class.ilLink.php");
23  $n = $this->getNewsItem();
24  if ($n->getContextSubObjType() == "pg"
25  && $n->getContextSubObjId() > 0) {
26  //$add = "&target=pg_".$n->getContextSubObjId()."_".$this->getNewsRefId();
27  return ilLink::_getLink($n->getContextSubObjId() . "_" . $this->getNewsRefId(), "pg");
28  }
29  return ilLink::_getLink($this->getNewsRefId());
30  }
$n
Definition: RandomTest.php:85
+ Here is the call graph for this function:

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