ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilLearningModuleNewsRendererGUI Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 getObjectLink ()
 Get link href for object link. More...
 
- Public Member Functions inherited from ilNewsDefaultRendererGUI
 __construct ()
 
 setNewsItem (ilNewsItem $a_news_item, int $a_news_ref_id)
 
 getNewsItem ()
 
 getNewsRefId ()
 
 setLanguage (string $lang_key)
 
 getTimelineContent ()
 Render content for timeline. More...
 
 getDetailContent ()
 Render content for detail view. More...
 
 makeClickable (string $a_str)
 
 addTimelineActions (ilAdvancedSelectionListGUI $list)
 
 getObjectLink ()
 Get link href for object link. More...
 
 preventEditing ()
 

Additional Inherited Members

- Protected Attributes inherited from ilNewsDefaultRendererGUI
ILIAS Refinery Factory $refinery
 
string $lng_key
 
ilCtrl $ctrl
 
ilLanguage $lng
 
ilNewsItem $news_item
 
int $news_ref_id
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Learning Module news renderer

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Member Function Documentation

◆ getObjectLink()

ilLearningModuleNewsRendererGUI::getObjectLink ( )

Get link href for object link.

Implements ilNewsRendererGUI.

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

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

26  : string
27  {
28  $n = $this->getNewsItem();
29  if ($n->getContextSubObjType() == "pg"
30  && $n->getContextSubObjId() > 0) {
31  //$add = "&target=pg_".$n->getContextSubObjId()."_".$this->getNewsRefId();
32  return ilLink::_getLink($n->getContextSubObjId() . "_" . $this->getNewsRefId(), "pg");
33  }
34  return ilLink::_getLink($this->getNewsRefId());
35  }
+ Here is the call graph for this function:

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