32 protected string $id =
"";
43 string $a_append =
"",
48 $this->
lng = $DIC->language();
49 $this->
ctrl = $DIC->ctrl();
50 $this->obj_data_cache = $DIC[
"ilObjDataCache"];
63 $this->includepermanentlinktext = $a_includepermanentlinktext;
74 public function setType(
string $a_type): void
76 $this->type = $a_type;
84 public function setId(
string $a_id): void
96 $this->append = $a_append;
106 $this->target = $a_target;
116 $this->title = $a_val;
130 "tpl.permanent_link.html",
133 "Services/PermanentLink" 143 $tpl->setVariable(
"TXT_PERMA", $lng->
txt(
"perma_link") .
":");
150 } elseif (is_numeric($this->
getId())) {
151 $obj_id = $ilObjDataCache->lookupObjId((
int) $this->
getId());
152 $title = $ilObjDataCache->lookupTitle($obj_id);
155 $tpl->setVariable(
"TXT_BOOKMARK_DEFAULT", $title);
157 $tpl->setVariable(
"LINK", $href);
159 $tpl->setVariable(
"ALIGN",
"left");
162 $tpl->setVariable(
"TARGET",
'target="' . $this->
getTarget() .
'"');
getIncludePermanentLinkText()
Include permanent link text.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
__construct(string $a_type, int $a_id, string $a_append="", string $a_target="")
Example: type = "wiki", id (ref_id) = "234", append = "_Start_Page".
setAppend(string $a_append)
bool $includepermanentlinktext
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilObjectDataCache $obj_data_cache
static _getStaticLink(?int $a_ref_id, string $a_type='', bool $a_fallback_goto=true, string $append="")
Get static link.
setTarget(string $a_target)
setIncludePermanentLinkText(bool $a_includepermanentlinktext)
Set Include permanent link text.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl