ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilWikiNewsRendererGUI.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
5include_once("./Services/News/classes/class.ilNewsDefaultRendererGUI.php");
14{
20 public function getObjectLink()
21 {
22 include_once("./Services/Link/classes/class.ilLink.php");
23 $n = $this->getNewsItem();
24 if ($n->getContextSubObjType() == "wpg"
25 && $n->getContextSubObjId() > 0) {
26 include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
27 $wptitle = ilWikiPage::lookupTitle($n->getContextSubObjId());
28 if ($wptitle != "") {
29 $add = "_" . ilWikiUtil::makeUrlTitle($wptitle);
30 }
31 }
32
33 return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
34 }
35}
$n
Definition: RandomTest.php:85
An exception for terminatinating execution or to throw for unit testing.
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
static makeUrlTitle($a_par)
Set page parameter for Url Embedding.