ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilLearningModuleNewsRendererGUI.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"
);
13
class
ilLearningModuleNewsRendererGUI
extends
ilNewsDefaultRendererGUI
14
{
20
function
getObjectLink
()
21
{
22
include_once(
"./Services/Link/classes/class.ilLink.php"
);
23
$n
= $this->
getNewsItem
();
24
if
(
$n
->getContextSubObjType() ==
"pg"
25
&&
$n
->getContextSubObjId() > 0)
26
{
27
//$add = "&target=pg_".$n->getContextSubObjId()."_".$this->getNewsRefId();
28
return
ilLink::_getLink
(
$n
->getContextSubObjId().
"_"
.$this->
getNewsRefId
(),
"pg"
);
29
}
30
return
ilLink::_getLink
($this->
getNewsRefId
());
31
}
32
33
}
34
35
?>
ilNewsDefaultRendererGUI\getNewsRefId
getNewsRefId()
Get news ref id.
Definition:
class.ilNewsDefaultRendererGUI.php:75
ilLearningModuleNewsRendererGUI
Learning Module news renderer.
Definition:
class.ilLearningModuleNewsRendererGUI.php:13
ilNewsDefaultRendererGUI
Default renderer.
Definition:
class.ilNewsDefaultRendererGUI.php:13
ilNewsDefaultRendererGUI\getNewsItem
getNewsItem()
Get news item.
Definition:
class.ilNewsDefaultRendererGUI.php:65
$n
$n
Definition:
RandomTest.php:80
ilLearningModuleNewsRendererGUI\getObjectLink
getObjectLink()
Get object link.
Definition:
class.ilLearningModuleNewsRendererGUI.php:20
php
ilLink\_getLink
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")
Definition:
class.ilLink.php:17
Modules
LearningModule
classes
class.ilLearningModuleNewsRendererGUI.php
Generated on Fri Jan 17 2025 19:01:00 for ILIAS by
1.8.13 (using
Doxyfile
)