ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBlogNewsRendererGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
27 public function getObjectLink(): 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 }
41}
getObjectLink()
Get link href for object link.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: shib_login.php:26