ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
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
12
class
ilForumNewsRendererGUI
extends
ilNewsDefaultRendererGUI
13
{
19
public
function
getObjectLink
()
20
{
21
$n
= $this->
getNewsItem
();
22
if
(
$n
->getContextSubObjType() ==
"pos"
23
&&
$n
->getContextSubObjId() > 0) {
24
$pos =
$n
->getContextSubObjId();
25
$thread =
ilObjForumAccess::_getThreadForPosting
($pos);
26
if
($thread > 0) {
27
$add =
"_"
. $thread .
"_"
. $pos;
28
}
29
}
30
31
return
ilLink::_getLink
($this->
getNewsRefId
(),
""
, array(), $add);
32
}
33
}
ilForumNewsRendererGUI
Forum news renderer.
Definition:
class.ilForumNewsRendererGUI.php:12
ilNewsDefaultRendererGUI\getNewsRefId
getNewsRefId()
Get news ref id.
Definition:
class.ilNewsDefaultRendererGUI.php:75
ilObjForumAccess\_getThreadForPosting
static _getThreadForPosting($a_pos_id)
Get thread id for posting.
Definition:
class.ilObjForumAccess.php:78
ilNewsDefaultRendererGUI
Default renderer.
Definition:
class.ilNewsDefaultRendererGUI.php:13
ilNewsDefaultRendererGUI\getNewsItem
getNewsItem()
Get news item.
Definition:
class.ilNewsDefaultRendererGUI.php:65
$n
$n
Definition:
RandomTest.php:85
ilForumNewsRendererGUI\getObjectLink
getObjectLink()
Get object link.
Definition:
class.ilForumNewsRendererGUI.php:19
php
ilLink\_getLink
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
Definition:
class.ilLink.php:17
Modules
Forum
classes
class.ilForumNewsRendererGUI.php
Generated on Thu Jan 30 2025 19:01:40 for ILIAS by
1.8.13 (using
Doxyfile
)