ILIAS  release_7 Revision v7.30-3-g800a261c036
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
13{
19 public function getObjectLink()
20 {
21 $n = $this->getNewsItem();
22 if ($n->getContextSubObjType() == "pg"
23 && $n->getContextSubObjId() > 0) {
24 //$add = "&target=pg_".$n->getContextSubObjId()."_".$this->getNewsRefId();
25 return ilLink::_getLink($n->getContextSubObjId() . "_" . $this->getNewsRefId(), "pg");
26 }
27 return ilLink::_getLink($this->getNewsRefId());
28 }
29}
$n
Definition: RandomTest.php:85
An exception for terminatinating execution or to throw for unit testing.