ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilBlogNewsRendererGUI 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 ilBlogNewsRendererGUI:
+ Collaboration diagram for ilBlogNewsRendererGUI:

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)
 
 getTimelineActions ()
 
 getObjectLink ()
 Get link href for object link. More...
 
 preventEditing ()
 

Additional Inherited Members

- Protected Attributes inherited from ilNewsDefaultRendererGUI
ILIAS DI UIServices $ui
 
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 Blog news renderer

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

Definition at line 25 of file class.ilBlogNewsRendererGUI.php.

Member Function Documentation

◆ getObjectLink()

ilBlogNewsRendererGUI::getObjectLink ( )

Get link href for object link.

Implements ilNewsRendererGUI.

Definition at line 27 of file class.ilBlogNewsRendererGUI.php.

References $DIC, ilNewsDefaultRendererGUI\getNewsItem(), and ilNewsDefaultRendererGUI\getNewsRefId().

27  : string
28  {
29  global $DIC;
30 
31  $pl = $DIC->blog()->internal()->gui()->permanentLink($this->getNewsRefId());
32 
33  $n = $this->getNewsItem();
34  $posting_id = 0;
35  if ($n->getContextSubObjType() === "blp"
36  && $n->getContextSubObjId() > 0) {
37  $posting_id = $n->getContextSubObjId();
38  }
39  return $pl->getPermanentLink($posting_id);
40  }
global $DIC
Definition: shib_login.php:25
+ Here is the call graph for this function:

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