ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
5 include_once("./Services/News/classes/class.ilNewsDefaultRendererGUI.php");
14 {
20  public 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  include_once("./Modules/Forum/classes/class.ilObjForumAccess.php");
27  $pos = $n->getContextSubObjId();
29  if ($thread > 0) {
30  $add = "_" . $thread . "_" . $pos;
31  }
32  }
33 
34  return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
35  }
36 }
static _getThreadForPosting($a_pos_id)
Get thread id for posting.
$n
Definition: RandomTest.php:85
Create styles array
The data for the language used.