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;
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") .
":");
226 } elseif (is_numeric($this->
getId())) {
227 $obj_id = $ilObjDataCache->lookupObjId($this->
getId());
228 $title = $ilObjDataCache->lookupTitle($obj_id);
231 # $bookmark->setTitle("untitled"); 233 $tpl->setVariable(
"TXT_BOOKMARK_DEFAULT",
$title);
235 $tpl->setVariable(
"LINK", $href);
238 $tpl->setVariable(
"ALIGN",
"center");
240 $tpl->setVariable(
"ALIGN",
"left");
244 $tpl->setVariable(
"TARGET",
'target="' . $this->
getTarget() .
'"');
247 $bm_html = self::getBookmarksSelectionList(
$title, $href);
249 $tpl->setVariable(
'SELECTION_LIST', $bm_html);
260 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
263 $random = new \ilRandom();
264 $current_selection_list->setId(
'socialbm_actions_' . md5(uniqid($random->int(),
true)));
268 if (!
$GLOBALS[
'DIC'][
'ilUser']->isAnonymous() && !
$GLOBALS[
'DIC'][
'ilSetting']->get(
'disable_bookmarks')) {
269 $GLOBALS[
'DIC']->ctrl()->setParameterByClass(
270 'ilbookmarkadministrationgui',
274 $GLOBALS[
'DIC']->ctrl()->setParameterByClass(
275 'ilbookmarkadministrationgui',
279 $GLOBALS[
'DIC']->ctrl()->setParameterByClass(
280 'ilbookmarkadministrationgui',
284 $GLOBALS[
'DIC']->ctrl()->setParameterByClass(
285 'ilbookmarkadministrationgui',
289 $GLOBALS[
'DIC']->ctrl()->setParameterByClass(
290 'ilbookmarkadministrationgui',
294 $link =
$GLOBALS[
'DIC']->ctrl()->getLinkTargetByClass(
295 [
'ilPersonalDesktopGUI',
'ilbookmarkadministrationgui'],
298 $current_selection_list->addItem(
$GLOBALS[
'DIC'][
'lng']->txt(
"bm_add_to_ilias"),
'', $link,
'',
$GLOBALS[
'DIC'][
'lng']->txt(
'bm_add_to_ilias'),
'_top');
299 $html = $current_selection_list->getHTML();
getIncludePermanentLinkText()
Get Include permanent link text.
static getBookmarksSelectionList($title, $href)
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Class for permanent links.
setAppend($a_append)
Set Append.
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
if(!array_key_exists('StateId', $_REQUEST)) $id
setTarget($a_target)
Set Target.
setIncludePermanentLinkText($a_includepermanentlinktext)
Set Include permanent link text.
__construct($a_type, $a_id, $a_append="", $a_target="")
Example: type = "wiki", id (ref_id) = "234", append = "_Start_Page".
setAlignCenter($a_val)
Set center alignment.
getHTML()
Get HTML for link.
getAlignCenter()
Get center alignment.
setTitle($a_val)
Set title.
special template class to simplify handling of ITX/PEAR
setType($a_type)
Set Type.
User interface class for advanced drop-down selection lists.