ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
5 include_once("./Services/News/classes/class.ilNewsDefaultRendererGUI.php");
14 {
20  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  {
27  include_once("./Modules/Wiki/classes/class.ilWikiPage.php");
28  $wptitle = ilWikiPage::lookupTitle($n->getContextSubObjId());
29  if ($wptitle != "")
30  {
31  $add = "_".ilWikiUtil::makeUrlTitle($wptitle);
32  }
33  }
34 
35  return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
36  }
37 
38 }
39 
40 ?>
static lookupTitle($a_page_id)
Checks whether a page with given title exists.
$n
Definition: RandomTest.php:80
Create styles array
The data for the language used.