ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilForumNewsRendererGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 public function getObjectLink(): string
29 {
30 $link_target_suffix = '';
31 $news = $this->getNewsItem();
32
33 if ($news->getContextSubObjType() === 'pos' && $news->getContextSubObjId() > 0) {
34 $pos = $news->getContextSubObjId();
36 if ($thread > 0) {
37 $link_target_suffix = '_' . $thread . '_' . $pos;
38 }
39 }
40
41 return ilLink::_getLink($this->getNewsRefId(), '', [], $link_target_suffix);
42 }
43}
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...
static _getThreadForPosting(int $a_pos_id)