ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilBlogNewsRendererGUI.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
10{
16 public function getObjectLink()
17 {
18 $n = $this->getNewsItem();
19 $add = "";
20 if ($n->getContextSubObjType() == "blp"
21 && $n->getContextSubObjId() > 0) {
22 $add = "_" . $n->getContextSubObjId();
23 }
24
25 return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
26 }
27}
$n
Definition: RandomTest.php:85
An exception for terminatinating execution or to throw for unit testing.