43 $this->lng =
$DIC->language();
44 $this->ctrl =
$DIC->ctrl();
45 $this->obj_data_cache =
$DIC[
"ilObjDataCache"];
60 $this->includepermanentlinktext = $a_includepermanentlinktext;
70 return $this->includepermanentlinktext;
120 $this->append = $a_append;
130 return $this->append;
140 $this->target = $a_target;
150 return $this->target;
160 $this->title = $a_val;
180 $this->align_center = $a_val;
203 "tpl.permanent_link.html",
206 "Services/PermanentLink"
209 include_once(
'./Services/Link/classes/class.ilLink.php');
217 $tpl->setVariable(
"TXT_PERMA",
$lng->txt(
"perma_link") .
":");
224 } elseif (is_numeric($this->
getId())) {
225 $obj_id = $ilObjDataCache->lookupObjId($this->
getId());
226 $title = $ilObjDataCache->lookupTitle($obj_id);
229 $tpl->setVariable(
"TXT_BOOKMARK_DEFAULT", $title);
231 $tpl->setVariable(
"LINK", $href);
234 $tpl->setVariable(
"ALIGN",
"center");
236 $tpl->setVariable(
"ALIGN",
"left");
240 $tpl->setVariable(
"TARGET",
'target="' . $this->
getTarget() .
'"');
An exception for terminatinating execution or to throw for unit testing.
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
Class for permanent links.
setIncludePermanentLinkText($a_includepermanentlinktext)
Set Include permanent link text.
getAlignCenter()
Get center alignment.
__construct($a_type, $a_id, $a_append="", $a_target="")
Example: type = "wiki", id (ref_id) = "234", append = "_Start_Page".
setAppend($a_append)
Set Append.
setType($a_type)
Set Type.
setAlignCenter($a_val)
Set center alignment.
setTitle($a_val)
Set title.
getIncludePermanentLinkText()
Get Include permanent link text.
getHTML()
Get HTML for link.
setTarget($a_target)
Set Target.
special template class to simplify handling of ITX/PEAR
if(isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) $tpl