55 string $a_default_link_type,
56 int $a_default_parent_id,
60 $this->tree = $DIC->repositoryTree();
61 $this->
lng = $DIC->language();
62 $this->
ctrl = $DIC->ctrl();
63 $this->
user = $DIC->user();
69 $this->thumbs_gui = $DIC->mediaObjects()->internal()->gui()->thumbs();
71 $this->
lng->loadLanguageModule(
"link");
72 $this->
lng->loadLanguageModule(
"content");
73 $this->
lng->loadLanguageModule(
"copg");
74 $this->
ctrl->saveParameter($this, array(
"linkmode",
"link_par_ref_id",
"link_par_obj_id",
75 "link_par_fold_id",
"link_type"));
78 $this->default_link_type = $a_default_link_type;
80 $this->default_parent_ref_id = $a_default_parent_id;
83 $this->default_parent_ref_id = 0;
84 $this->default_parent_obj_id = $a_default_parent_id;
86 $this->default_parent_obj_type = ($this->default_parent_obj_id > 0)
91 $this->parent_ref_id = $this->request->getLinkParentRefId();
92 $this->parent_fold_id = $this->request->getLinkParentFolderId();
93 if ($this->parent_ref_id > 0) {
96 $this->parent_obj_id = $this->request->getLinkParentObjId();
106 if ($this->parent_ref_id > 0 && !$tree->
isInTree($this->parent_ref_id)) {
110 $this->parent_type = array(
111 "StructureObject" =>
"lm",
112 "PageObject" =>
"lm",
113 "GlossaryItem" =>
"glo",
115 "WikiPage" =>
"wiki",
116 "PortfolioPage" =>
"prtf",
117 "PortfolioTemplatePage" =>
"prtt",
119 "RepositoryItem" =>
"",
124 $this->ltypes = array(
125 "StructureObject" => $lng->
txt(
"cont_lk_chapter"),
126 "StructureObject_New" => $lng->
txt(
"cont_lk_chapter_new"),
127 "PageObject" => $lng->
txt(
"cont_lk_page"),
128 "PageObject_FAQ" => $lng->
txt(
"cont_lk_page_faq"),
129 "PageObject_New" => $lng->
txt(
"cont_lk_page_new"),
130 "GlossaryItem" => $lng->
txt(
"cont_lk_term"),
131 "GlossaryItem_New" => $lng->
txt(
"cont_lk_term_new"),
132 "Media" => $lng->
txt(
"cont_lk_media_inline"),
133 "Media_Media" => $lng->
txt(
"cont_lk_media_media"),
134 "Media_FAQ" => $lng->
txt(
"cont_lk_media_faq"),
135 "Media_New" => $lng->
txt(
"cont_lk_media_new"),
136 "WikiPage" => $lng->
txt(
"cont_wiki_page"),
137 "PortfolioPage" => $lng->
txt(
"cont_prtf_page"),
138 "PortfolioTemplatePage" => $lng->
txt(
"cont_prtt_page"),
139 "File" => $lng->
txt(
"cont_lk_file"),
140 "RepositoryItem" => $lng->
txt(
"cont_repository_item"),
141 "User" => $lng->
txt(
"cont_user")
143 if (!$this->filter_white_list) {
144 foreach ($this->filter_link_types as $link_type) {
145 unset($this->ltypes[$link_type]);
149 foreach ($this->ltypes as $k => $l) {
150 if (in_array($k, $this->filter_link_types,
true)) {
157 $this->link_type = ($this->request->getLinkType() ===
"")
158 ? $this->default_link_type
159 : $this->request->getLinkType();
160 $ltype_arr = explode(
"_", $this->link_type);
161 $this->base_link_type = $ltype_arr[0];
162 $this->link_target = $ltype_arr[1] ??
"";
168 switch ($this->base_link_type) {
170 case "StructureObject":
174 case "PortfolioPage":
175 case "PortfolioTemplatePage":
176 if ($this->parent_ref_id === 0 && $this->parent_obj_id === 0
177 && $def_type === ($this->parent_type[$this->base_link_type] ??
"")) {
180 $ctrl->
setParameter($this,
"link_par_obj_id", $this->parent_obj_id);
181 $ctrl->
setParameter($this,
"link_par_ref_id", $this->parent_ref_id);
189 $this->set_link_script = $a_script;
194 $this->
return = $a_return;
204 $this->filter_link_types[] = $a_link_type;
212 $this->filter_white_list = $a_white_list;
219 $next_class = $this->
ctrl->getNextClass($this);
221 $cmd = $this->
ctrl->getCmd(
"showLinkHelp");
222 switch ($next_class) {
224 $ret = $this->$cmd();
228 return (
string) $ret;
240 $ctrl->
redirect($this,
"showLinkHelp",
"",
true);
245 if ($this->
return ===
"") {
246 $this->
ctrl->returnToParent($this);
257 return htmlspecialchars($str, ENT_QUOTES);
271 if ((in_array($this->base_link_type, array(
"GlossaryItem",
"WikiPage",
"PageObject",
"StructureObject"),
true) &&
272 ($this->parent_ref_id === 0))
274 (($this->parent_ref_id > 0) &&
276 if ($parent_type !==
"") {
280 if ($ilCtrl->isAsynch()) {
281 $tpl =
new ilGlobalTemplate(
"tpl.link_help_asynch.html",
true,
true,
"components/ILIAS/COPage/IntLink");
282 $tpl->setVariable(
"NEW_LINK_URL", $this->
ctrl->getLinkTarget(
290 $tpl =
new ilGlobalTemplate(
"tpl.link_help.html",
true,
true,
"components/ILIAS/COPage/IntLink");
294 $tpl->setVariable(
"FORMACTION", $this->
ctrl->getFormAction($this,
"changeLinkType",
"",
true));
295 $tpl->setVariable(
"FORMACTION2", $this->
ctrl->getFormAction($this));
296 $tpl->setVariable(
"TXT_HELP_HEADER", $this->
lng->txt(
"cont_link_select"));
297 $tpl->setVariable(
"TXT_TYPE", $this->
lng->txt(
"cont_link_type"));
308 array(
"id" =>
"ilIntLinkTypeSelector")
310 $tpl->setVariable(
"SELECT_TYPE", $select_ltype);
311 $tpl->setVariable(
"CMD_CHANGETYPE",
"changeLinkType");
312 $tpl->setVariable(
"BTN_CHANGETYPE", $this->
lng->txt(
"cont_change_type"));
314 $tpl->setVariable(
"CMD_CLOSE",
"closeLinkHelp");
315 $tpl->setVariable(
"BTN_CLOSE", $this->
lng->txt(
"close"));
317 $chapterRowBlock =
"chapter_row_js";
320 switch ($this->base_link_type) {
326 $ctree = $cont_obj->getLMTree();
327 $nodes = $ctree->getSubTree($ctree->getNodeData($ctree->getRootId()));
328 $tpl->setCurrentBlock(
"chapter_list");
329 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"obj_lm"));
330 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
331 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"copg_pages"));
334 $tpl->setCurrentBlock(
"change_cont_obj");
335 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
336 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
337 $tpl->parseCurrentBlock();
339 foreach ($nodes as $node) {
340 if ($node[
"type"] ===
"st") {
341 $tpl->setCurrentBlock(
"header_row");
342 $tpl->setVariable(
"TXT_HEADER", $node[
"title"]);
343 $tpl->parseCurrentBlock();
344 $tpl->setCurrentBlock(
"row");
345 $tpl->parseCurrentBlock();
348 if ($node[
"type"] ===
"pg") {
363 $free_pages = array();
364 foreach ($pages as $page) {
365 if (!$ctree->isInTree($page[
"obj_id"])) {
366 $free_pages[] = $page;
369 if (count($free_pages) > 0) {
370 $tpl->setCurrentBlock(
"header_row");
371 $tpl->setVariable(
"TXT_HEADER", $this->
lng->txt(
"cont_free_pages"));
372 $tpl->parseCurrentBlock();
374 foreach ($free_pages as $node) {
387 $tpl->setCurrentBlock(
"chapter_list");
388 $tpl->parseCurrentBlock();
393 case "StructureObject":
403 $ctree = $cont_obj->getLMTree();
404 $nodes = $ctree->getSubTree($ctree->getNodeData($ctree->getRootId()));
405 $tpl->setCurrentBlock(
"chapter_list");
406 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"obj_lm"));
407 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
408 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_chapters"));
409 $tpl->setCurrentBlock(
"change_cont_obj");
410 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
411 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
412 $tpl->parseCurrentBlock();
414 foreach ($nodes as $node) {
415 if ($node[
"type"] ===
"st") {
426 $tpl->setCurrentBlock(
"chapter_list");
427 $tpl->parseCurrentBlock();
435 $terms = $glossary->getTermList();
436 $tpl->setCurrentBlock(
"chapter_list");
437 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"glossary"));
438 $tpl->setVariable(
"TXT_CONT_TITLE", $glossary->getTitle());
439 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_terms"));
440 $tpl->setCurrentBlock(
"change_cont_obj");
441 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
442 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
443 $tpl->parseCurrentBlock();
445 foreach ($terms as $term) {
456 $tpl->setCurrentBlock(
"chapter_list");
457 $tpl->parseCurrentBlock();
464 if ($this->parent_ref_id === 0) {
465 $tpl->setCurrentBlock(
"change_cont_obj");
466 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
467 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
468 $tpl->parseCurrentBlock();
469 $mobjs = $ilUser->getClipboardObjects(
"mob");
472 foreach ($mobjs as $obj) {
473 $objs[$obj[
"title"] .
":" . $obj[
"id"]] = $obj;
476 $tpl->setCurrentBlock(
"chapter_list");
477 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"cont_media_source"));
478 $tpl->setVariable(
"TXT_CONT_TITLE", $this->
lng->txt(
"cont_personal_clipboard"));
479 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_mobs"));
480 $tpl->setVariable(
"COLSPAN",
"2");
482 foreach ($objs as $obj) {
495 $fobjs = $med_pool->getChilds($this->parent_fold_id,
"fold");
497 foreach ($fobjs as $obj) {
498 $f2objs[$obj[
"title"] .
":" . $obj[
"child"]] = $obj;
502 $mobjs = $med_pool->getChilds($this->parent_fold_id,
"mob");
504 foreach ($mobjs as $obj) {
505 $m2objs[$obj[
"title"] .
":" . $obj[
"child"]] = $obj;
510 $objs = array_merge($f2objs, $m2objs);
512 $tpl->setCurrentBlock(
"chapter_list");
513 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"mep"));
514 $tpl->setVariable(
"TXT_CONT_TITLE", $med_pool->getTitle());
515 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_mobs"));
516 $tpl->setCurrentBlock(
"change_cont_obj");
517 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
518 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
519 $tpl->setVariable(
"COLSPAN",
"2");
520 $tpl->parseCurrentBlock();
521 if ($parent_id = $med_pool->getParentId($this->parent_fold_id)) {
522 $tpl->setCurrentBlock(
"icon");
524 $tpl->parseCurrentBlock();
525 $tpl->setCurrentBlock(
"link_row");
526 $tpl->setVariable(
"TXT_CHAPTER",
"..");
527 $this->
ctrl->setParameter($this,
"mep_fold", $parent_id);
528 if ($ilCtrl->isAsynch()) {
529 $tpl->setVariable(
"LINK",
"#");
532 " onclick=\"return il.IntLink.setMepPoolFolder('" . $parent_id .
"');\" " 537 $this->
ctrl->getLinkTarget($this,
"setMedPoolFolder")
540 $tpl->parseCurrentBlock();
541 $tpl->setCurrentBlock(
"row");
542 $tpl->parseCurrentBlock();
544 foreach ($objs as $obj) {
545 if ($obj[
"type"] ===
"fold") {
546 $tpl->setCurrentBlock(
"icon");
548 $tpl->parseCurrentBlock();
549 $tpl->setCurrentBlock(
"link_row");
550 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
551 $this->
ctrl->setParameter($this,
"mep_fold", $obj[
"child"]);
552 if ($ilCtrl->isAsynch()) {
553 $tpl->setVariable(
"LINK",
"#");
556 " onclick=\"return il.IntLink.setMepPoolFolder('" . $obj[
"child"] .
"');\" " 561 $this->
ctrl->getLinkTarget($this,
"setMedPoolFolder")
564 $tpl->parseCurrentBlock();
578 $tpl->setCurrentBlock(
"row");
579 $tpl->parseCurrentBlock();
582 $tpl->setCurrentBlock(
"chapter_list");
583 $tpl->parseCurrentBlock();
592 $tpl->setCurrentBlock(
"chapter_list");
593 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"obj_wiki"));
595 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_wpages"));
596 $tpl->setCurrentBlock(
"change_cont_obj");
597 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
598 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
599 $tpl->parseCurrentBlock();
601 foreach ($wpages as $wpage) {
612 $tpl->setCurrentBlock(
"chapter_list");
613 $tpl->parseCurrentBlock();
617 case "PortfolioPage":
618 case "PortfolioTemplatePage":
623 $tpl->setCurrentBlock(
"chapter_list");
626 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"copg_pages"));
628 foreach ($ppages as $ppage) {
641 $tpl->setCurrentBlock(
"chapter_list");
642 $tpl->parseCurrentBlock();
646 case "RepositoryItem":
652 if (!isset($this->uploaded_file)) {
662 $tpl->setVariable(
"LINK_HELP_CONTENT", $this->
addUser());
666 if ($ilCtrl->isAsynch()) {
682 $tpl =
new ilTemplate(
"tpl.link_file.html",
true,
true,
"components/ILIAS/COPage/IntLink");
683 if (!is_object($this->uploaded_file)) {
684 $tpl->setCurrentBlock(
"form");
687 $ilCtrl->getFormAction($this,
"saveFileLink",
"",
true)
689 $tpl->setVariable(
"TXT_SELECT_FILE", $lng->
txt(
"cont_select_file"));
690 $tpl->setVariable(
"TXT_SAVE_LINK", $lng->
txt(
"cont_create_link"));
691 $tpl->setVariable(
"CMD_SAVE_LINK",
"saveFileLink");
694 $tpl->setVariable(
"INPUT", $fi->getToolbarHTML());
695 $tpl->parseCurrentBlock();
697 $tpl->setCurrentBlock(
"link_js");
703 '[iln dfile=\x22' . $this->uploaded_file->getId() .
'\x22]' 711 $this->uploaded_file->getTitle()
723 if ($_FILES[
"link_file"][
"name"] !=
"") {
725 $fileObj->setType(
"file");
726 $fileObj->setTitle($_FILES[
"link_file"][
"name"]);
727 $fileObj->setDescription(
"");
728 $fileObj->setFileName($_FILES[
"link_file"][
"name"]);
729 $fileObj->setMode(
"filelist");
732 $fileObj->getUploadFile(
733 $_FILES[
"link_file"][
"tmp_name"],
734 $_FILES[
"link_file"][
"name"]
736 $this->uploaded_file = $fileObj;
761 $this->thumbs_gui->getThumbHtml($a_id)
777 $ctrl->
setParameter($this,
"link_type", $this->request->getLinkType());
778 $base_type = explode(
"_", $this->request->getLinkType())[0];
784 $ctrl->
redirect($this,
"showLinkHelp",
"",
true);
793 $ctrl->
setParameter($this,
"link_par_fold_id", $this->request->getMediaPoolFolder());
794 $ctrl->
redirect($this,
"showLinkHelp",
"",
true);
807 $white = array(
"root",
"cat",
"crs",
"fold",
"grp");
810 $exp->setClickableType($a_type);
811 if ($a_type ===
"prtf") {
813 $exp->setClickableType(
"prtt");
816 $exp->setTypeWhiteList($white);
819 if (!$exp->handleCommand()) {
820 return $exp->getHTML();
834 if ($this->request->getDo() ===
"set") {
835 $ilCtrl->setParameter($this,
"link_par_ref_id", $this->request->getSelectedId());
836 $ilCtrl->redirect($this,
"showLinkHelp",
"",
true);
840 $ilCtrl->setParameter($this,
"link_type", $this->link_type);
842 $tpl =
new ilTemplate(
"tpl.link_help_explorer.html",
true,
true,
"components/ILIAS/COPage/IntLink");
846 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->
lng->txt(
"cont_choose_" . ($this->parent_type[$this->base_link_type] ??
"")));
848 $tpl->setVariable(
"EXPLORER", $output);
849 $tpl->setVariable(
"ACTION", $this->
ctrl->getFormAction($this,
"resetLinkList",
"",
true));
850 $tpl->setVariable(
"BTN_RESET",
"resetLinkList");
851 $tpl->setVariable(
"TXT_RESET", $this->
lng->txt(
"back"));
853 if (($this->parent_type[$this->base_link_type] ??
"") ===
"mep") {
854 $tpl->setCurrentBlock(
"sel_clipboard");
855 $this->
ctrl->setParameter($this,
"do",
"set");
856 if ($ilCtrl->isAsynch()) {
857 $tpl->setVariable(
"LINK_CLIPBOARD",
"#");
860 " onclick=\"return il.IntLink.selectLinkTargetObject('mep', 0, '" . $this->link_type .
"');\" " 863 $tpl->setVariable(
"LINK_CLIPBOARD", $this->
ctrl->getLinkTarget($this,
"changeTargetObject"));
865 $tpl->setVariable(
"TXT_PERS_CLIPBOARD", $this->
lng->txt(
"clipboard"));
866 $tpl->parseCurrentBlock();
869 $tpl->parseCurrentBlock();
888 if (!$exp->handleCommand()) {
889 return $exp->getHTML();
906 return "il.Util.addOnLoad(function() {il.IntLink.init({url: '$a_url'});});";
916 $lng = $DIC->language();
920 self::getOnloadCode($a_url)
927 $tpl->addJavaScript(
"assets/js/ilExplorer.js");
931 $tpl->addJavascript(
"../components/ILIAS/COPage/IntLink/resources/ilIntLink.js");
933 $tpl->addJavascript(
"assets/js/ilIntLink.js");
937 $tpl->addJavaScript(
"assets/js/Form.js");
939 $mt = self::getModalTemplate();
940 $tpl->addOnLoadCode(
'il.IntLink.setModalTemplate("' . addslashes(json_encode($mt[
"template"])) .
'");');
942 $html =
"<div id='ilIntLinkModal' data-show-signal='" . $mt[
"show"] .
"' data-close-signal='" . $mt[
"close"] .
"'></div>";
951 $lng = $DIC->language();
954 $modal = $ui->factory()->modal()->roundtrip($lng->
txt(
"link_link"), $ui->factory()->legacy(
"<div id='ilIntLinkModalContent'></div>"));
955 $modalt[
"show"] = $modal->getShowSignal()->getId();
956 $modalt[
"close"] = $modal->getCloseSignal()->getId();
957 $modalt[
"template"] = $ui->renderer()->renderAsync($modal);
971 string $a_type_short,
973 array $a_anchors = array(),
974 string $a_link_content =
"" 976 $chapterRowBlock =
"chapter_row_js";
977 $anchor_row_block =
"anchor_link_js";
979 $target_str = ($this->link_target ===
"")
981 :
" target=\"" . $this->link_target .
"\"";
983 if (count($a_anchors) > 0) {
984 foreach ($a_anchors as $anchor) {
1001 $this->
prepareJavascriptOutput(
"[iln " . $a_bb_type .
"=\"" . $a_obj_id .
"\"" . $target_str .
" anchor=\"$anchor\"]")
1012 if ($a_type ===
"MediaObject") {
1021 "linktype=" . $a_type .
1022 "&linktarget=il__" . $a_type_short .
"_" . $a_obj_id .
1023 "&linktargetframe=" . $this->link_target
1028 if ($a_type ===
"MediaObject") {
1033 if ($a_type ===
"MediaObject" && empty($target_str)) {
1044 $tpl->
setVariable(
"LINK_CONTENT", $a_link_content);
1069 $form->setId(
"link_user_search_form");
1073 $ti->setValue($this->request->getUserSearchStr());
1074 $form->addItem($ti);
1076 $form->addCommandButton(
"searchUser", $this->
lng->txt(
"search"));
1088 $lng = $DIC->language();
1090 if (strlen($this->request->getUserSearchStr()) < 3) {
1091 if (strlen($this->request->getUserSearchStr()) > 0) {
1100 $form->checkInput();
1103 if (count($users) === 0) {
1107 $f = $DIC->ui()->factory();
1108 $r = $DIC->ui()->renderer();
1109 $lng = $DIC->language();
1111 foreach ($users as $user) {
1112 $b = $f->button()->standard($lng->
txt(
"insert"),
"#")
1115 '$("#' .
$id .
"\").click(function(ev) { il.IntLink.addInternalLink('[iln user=\"" .
1120 ->withSections(array(
$b));
1122 $deck = $f->deck($cards)->withLargeCardsSize();
1124 return $r->renderAsync($deck);
static getAllPortfolioPages(int $a_portfolio_id)
Get pages of portfolio.
static getStyleSheetLocation(string $mode="output", string $a_css_name="")
get full style sheet file name (path inclusive) of current user
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static appendUrlParameterString(string $a_url, string $a_par, bool $xml_style=false)
static getInitHTML(string $a_url)
Get initialisation HTML to use internal link editing.
static getSystemMessageHTML(string $a_txt, string $a_type="info")
Get HTML for a system message.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setVariable(string $variable, $value='')
Sets the given variable to the given value.
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...
redirect(object $a_gui_obj, string $a_cmd=null, string $a_anchor=null, bool $is_async=false)
special template class to simplify handling of ITX/PEAR
static _readAnchors(string $a_parent_type, int $a_page_id, string $a_page_lang="-")
Read anchors of a page.
getUserSearchResult()
Search user.
setReturn(string $a_return)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
changeTargetObject(string $a_type="")
Cange target object.
int $default_parent_obj_id
isInTree(?int $a_node_id)
get all information of a node.
parseCurrentBlock(string $part=self::DEFAULT_BLOCK)
outputThumbnail(ilGlobalTemplate $tpl, int $a_id, string $a_mode="")
output thumbnail
static getOnloadCode(string $a_url)
getFileLinkHTML()
Get HTML for file link.
loadLanguageModule(string $a_module)
Load language module.
showLinkHelp()
Show link help list.
int $default_parent_ref_id
filterLinkType(string $a_link_type)
withOnLoadCode(Closure $binder)
static _lookupObjId(int $ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(string $a_default_link_type, int $a_default_parent_id, bool $a_is_ref=true)
static getNamePresentation( $a_user_id, bool $a_user_image=false, bool $a_profile_link=false, string $a_profile_back_link='', bool $a_force_first_lastname=false, bool $a_omit_login=false, bool $a_sortable=true, bool $a_return_data_array=false, $a_ctrl_path='ilpublicuserprofilegui')
Default behaviour is:
static _lookupTitle(int $obj_id)
getTargetExplorer()
Cange target object.
renderLink(ilGlobalTemplate $tpl, string $a_title, int $a_obj_id, string $a_type, string $a_type_short, string $a_bb_type, array $a_anchors=array(), string $a_link_content="")
Render internal link item.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
ILIAS MediaObjects Thumbs ThumbsGUI $thumbs_gui
static searchUsers(string $a_search_str)
Search users.
static redirect(string $a_script)
static _getPersonalPicturePath(int $a_usr_id, string $a_size='small', bool $a_force_pic=false, bool $a_prevent_no_photo_image=false, bool $html_export=false)
setMedPoolFolder()
select media pool folder
static _recoverParameters()
Recover parameters from session variables (static)
setFilterWhiteList(bool $a_white_list)
Set filter list as white list (per detault it is a black list)
prepareJavascriptOutput(string $str)
Prepare output for JS enabled editing.
static getPageList(int $lm_id)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
initUserSearchForm()
Init user search form.
string $default_parent_obj_type
string $default_link_type
saveFileLink()
Save file link.
static init(ilGlobalTemplateInterface $a_main_tpl=null)
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
setParameter(object $a_gui_obj, string $a_parameter, $a_value)
selectRepositoryItem()
select repository item explorer
StandardGUIRequest $request
static getAllWikiPages(int $a_wiki_id, string $lang="-")
static _lookupType(int $id, bool $reference=false)
setSetLinkTargetScript(string $a_script)
static getModalTemplate()
refreshRepositorySelector()
Refresh Repository Selector.
static _lookupLogin(int $a_user_id)