ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.ilForumNewsRendererGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2016 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5include_once("./Services/News/classes/class.ilNewsDefaultRendererGUI.php");
14{
20 function getObjectLink()
21 {
22 include_once("./Services/Link/classes/class.ilLink.php");
23 $n = $this->getNewsItem();
24 if ($n->getContextSubObjType() == "pos"
25 && $n->getContextSubObjId() > 0)
26 {
27 include_once("./Modules/Forum/classes/class.ilObjForumAccess.php");
28 $pos = $n->getContextSubObjId();
29 $thread = ilObjForumAccess::_getThreadForPosting($pos);
30 if ($thread > 0)
31 {
32 $add = "_".$thread."_".$pos;
33 }
34 }
35
36 return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
37 }
38
39}
40
41?>
$n
Definition: RandomTest.php:80
An exception for terminatinating execution or to throw for unit testing.