ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilWikiNewsRendererGUI.php
Go to the documentation of this file.
1<?php
2
25{
26 public function getObjectLink(): string
27 {
28 $add = "";
29 $n = $this->getNewsItem();
30 if ($n->getContextSubObjType() === "wpg"
31 && $n->getContextSubObjId() > 0) {
32 $wptitle = ilWikiPage::lookupTitle($n->getContextSubObjId());
33 if ($wptitle != "") {
34 $add = "_" . ilWikiUtil::makeUrlTitle($wptitle);
35 }
36 }
37
38 return ilLink::_getLink($this->getNewsRefId(), "", array(), $add);
39 }
40}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getObjectLink()
Get link href for object link.
static lookupTitle(int $a_page_id, string $lang="-")
static makeUrlTitle(string $a_par)