ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
13 {
19  public function getObjectLink()
20  {
21  $n = $this->getNewsItem();
22  if ($n->getContextSubObjType() == "pos"
23  && $n->getContextSubObjId() > 0) {
24  $pos = $n->getContextSubObjId();
26  if ($thread > 0) {
27  $add = "_" . $thread . "_" . $pos;
28  }
29  }
30 
31  return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
32  }
33 }
static _getThreadForPosting($a_pos_id)
Get thread id for posting.
$n
Definition: RandomTest.php:85