56 string $a_default_link_type,
57 int $a_default_parent_id,
61 $this->tree = $DIC->repositoryTree();
62 $this->
lng = $DIC->language();
63 $this->
ctrl = $DIC->ctrl();
64 $this->
user = $DIC->user();
70 $this->thumbs_gui = $DIC->mediaObjects()->internal()->gui()->thumbs();
72 $this->
lng->loadLanguageModule(
"link");
73 $this->
lng->loadLanguageModule(
"content");
74 $this->
lng->loadLanguageModule(
"copg");
75 $this->
ctrl->saveParameter($this, array(
"linkmode",
"link_par_ref_id",
"link_par_obj_id",
76 "link_par_fold_id",
"link_type"));
79 $this->default_link_type = $a_default_link_type;
81 $this->default_parent_ref_id = $a_default_parent_id;
84 $this->default_parent_ref_id = 0;
85 $this->default_parent_obj_id = $a_default_parent_id;
87 $this->default_parent_obj_type = ($this->default_parent_obj_id > 0)
92 $this->parent_ref_id = $this->request->getLinkParentRefId();
93 $this->parent_fold_id = $this->request->getLinkParentFolderId();
94 if ($this->parent_ref_id > 0) {
97 $this->parent_obj_id = $this->request->getLinkParentObjId();
107 if ($this->parent_ref_id > 0 && !$tree->
isInTree($this->parent_ref_id)) {
111 $this->parent_type = array(
112 "StructureObject" =>
"lm",
113 "PageObject" =>
"lm",
114 "GlossaryItem" =>
"glo",
116 "WikiPage" =>
"wiki",
117 "PortfolioPage" =>
"prtf",
118 "PortfolioTemplatePage" =>
"prtt",
120 "RepositoryItem" =>
"",
125 $this->ltypes = array(
126 "StructureObject" => $lng->
txt(
"cont_lk_chapter"),
127 "StructureObject_New" => $lng->
txt(
"cont_lk_chapter_new"),
128 "PageObject" => $lng->
txt(
"cont_lk_page"),
129 "PageObject_FAQ" => $lng->
txt(
"cont_lk_page_faq"),
130 "PageObject_New" => $lng->
txt(
"cont_lk_page_new"),
131 "GlossaryItem" => $lng->
txt(
"cont_lk_term"),
132 "GlossaryItem_New" => $lng->
txt(
"cont_lk_term_new"),
133 "Media" => $lng->
txt(
"cont_lk_media_inline"),
134 "Media_Media" => $lng->
txt(
"cont_lk_media_media"),
135 "Media_FAQ" => $lng->
txt(
"cont_lk_media_faq"),
136 "Media_New" => $lng->
txt(
"cont_lk_media_new"),
137 "WikiPage" => $lng->
txt(
"cont_wiki_page"),
138 "PortfolioPage" => $lng->
txt(
"cont_prtf_page"),
139 "PortfolioTemplatePage" => $lng->
txt(
"cont_prtt_page"),
140 "File" => $lng->
txt(
"cont_lk_file"),
141 "RepositoryItem" => $lng->
txt(
"cont_repository_item"),
142 "User" => $lng->
txt(
"cont_user")
144 if (!$this->filter_white_list) {
145 foreach ($this->filter_link_types as $link_type) {
146 unset($this->ltypes[$link_type]);
150 foreach ($this->ltypes as $k => $l) {
151 if (in_array($k, $this->filter_link_types,
true)) {
158 $this->link_type = ($this->request->getLinkType() ===
"")
159 ? $this->default_link_type
160 : $this->request->getLinkType();
161 $ltype_arr = explode(
"_", $this->link_type);
162 $this->base_link_type = $ltype_arr[0];
163 $this->link_target = $ltype_arr[1] ??
"";
169 switch ($this->base_link_type) {
171 case "StructureObject":
175 case "PortfolioPage":
176 case "PortfolioTemplatePage":
177 if ($this->parent_ref_id === 0 && $this->parent_obj_id === 0
178 && $def_type === ($this->parent_type[$this->base_link_type] ??
"")) {
181 $ctrl->
setParameter($this,
"link_par_obj_id", $this->parent_obj_id);
182 $ctrl->
setParameter($this,
"link_par_ref_id", $this->parent_ref_id);
190 $this->set_link_script = $a_script;
195 $this->
return = $a_return;
205 $this->filter_link_types[] = $a_link_type;
213 $this->filter_white_list = $a_white_list;
220 $next_class = $this->
ctrl->getNextClass($this);
222 $cmd = $this->
ctrl->getCmd(
"showLinkHelp");
223 switch ($next_class) {
225 $ret = $this->$cmd();
229 return (
string) $ret;
241 $ctrl->
redirect($this,
"showLinkHelp",
"",
true);
246 if ($this->
return ===
"") {
247 $this->
ctrl->returnToParent($this);
258 return htmlspecialchars($str, ENT_QUOTES);
272 if ((in_array($this->base_link_type, array(
"GlossaryItem",
"WikiPage",
"PageObject",
"StructureObject"),
true) &&
273 ($this->parent_ref_id === 0))
275 (($this->parent_ref_id > 0) &&
277 if ($parent_type !==
"") {
281 if ($ilCtrl->isAsynch()) {
282 $tpl =
new ilGlobalTemplate(
"tpl.link_help_asynch.html",
true,
true,
"components/ILIAS/COPage/IntLink");
283 $tpl->setVariable(
"NEW_LINK_URL", $this->
ctrl->getLinkTarget(
291 $tpl =
new ilGlobalTemplate(
"tpl.link_help.html",
true,
true,
"components/ILIAS/COPage/IntLink");
295 $tpl->setVariable(
"FORMACTION", $this->
ctrl->getFormAction($this,
"changeLinkType",
"",
true));
296 $tpl->setVariable(
"FORMACTION2", $this->
ctrl->getFormAction($this));
297 $tpl->setVariable(
"TXT_HELP_HEADER", $this->
lng->txt(
"cont_link_select"));
298 $tpl->setVariable(
"TXT_TYPE", $this->
lng->txt(
"cont_link_type"));
309 array(
"id" =>
"ilIntLinkTypeSelector")
311 $tpl->setVariable(
"SELECT_TYPE", $select_ltype);
312 $tpl->setVariable(
"CMD_CHANGETYPE",
"changeLinkType");
313 $tpl->setVariable(
"BTN_CHANGETYPE", $this->
lng->txt(
"cont_change_type"));
315 $tpl->setVariable(
"CMD_CLOSE",
"closeLinkHelp");
316 $tpl->setVariable(
"BTN_CLOSE", $this->
lng->txt(
"close"));
318 $chapterRowBlock =
"chapter_row_js";
321 switch ($this->base_link_type) {
327 $ctree = $cont_obj->getLMTree();
328 $nodes = $ctree->getSubTree($ctree->getNodeData($ctree->getRootId()));
329 $tpl->setCurrentBlock(
"chapter_list");
330 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"obj_lm"));
331 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
332 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"copg_pages"));
335 $tpl->setCurrentBlock(
"change_cont_obj");
336 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
337 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
338 $tpl->parseCurrentBlock();
340 foreach ($nodes as $node) {
341 if ($node[
"type"] ===
"st") {
342 $tpl->setCurrentBlock(
"header_row");
343 $tpl->setVariable(
"TXT_HEADER", $node[
"title"]);
344 $tpl->parseCurrentBlock();
345 $tpl->setCurrentBlock(
"row");
346 $tpl->parseCurrentBlock();
349 if ($node[
"type"] ===
"pg") {
364 $free_pages = array();
365 foreach ($pages as $page) {
366 if (!$ctree->isInTree($page[
"obj_id"])) {
367 $free_pages[] = $page;
370 if (count($free_pages) > 0) {
371 $tpl->setCurrentBlock(
"header_row");
372 $tpl->setVariable(
"TXT_HEADER", $this->
lng->txt(
"cont_free_pages"));
373 $tpl->parseCurrentBlock();
375 foreach ($free_pages as $node) {
388 $tpl->setCurrentBlock(
"chapter_list");
389 $tpl->parseCurrentBlock();
394 case "StructureObject":
404 $ctree = $cont_obj->getLMTree();
405 $nodes = $ctree->getSubTree($ctree->getNodeData($ctree->getRootId()));
406 $tpl->setCurrentBlock(
"chapter_list");
407 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"obj_lm"));
408 $tpl->setVariable(
"TXT_CONT_TITLE", $cont_obj->getTitle());
409 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_chapters"));
410 $tpl->setCurrentBlock(
"change_cont_obj");
411 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
412 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
413 $tpl->parseCurrentBlock();
415 foreach ($nodes as $node) {
416 if ($node[
"type"] ===
"st") {
427 $tpl->setCurrentBlock(
"chapter_list");
428 $tpl->parseCurrentBlock();
436 $terms = $glossary->getTermList();
437 $tpl->setCurrentBlock(
"chapter_list");
438 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"glossary"));
439 $tpl->setVariable(
"TXT_CONT_TITLE", $glossary->getTitle());
440 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_terms"));
441 $tpl->setCurrentBlock(
"change_cont_obj");
442 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
443 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
444 $tpl->parseCurrentBlock();
446 foreach ($terms as $term) {
457 $tpl->setCurrentBlock(
"chapter_list");
458 $tpl->parseCurrentBlock();
465 if ($this->parent_ref_id === 0) {
466 $tpl->setCurrentBlock(
"change_cont_obj");
467 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
468 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
469 $tpl->parseCurrentBlock();
470 $mobjs = $ilUser->getClipboardObjects(
"mob");
473 foreach ($mobjs as $obj) {
474 $objs[$obj[
"title"] .
":" . $obj[
"id"]] = $obj;
477 $tpl->setCurrentBlock(
"chapter_list");
478 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"cont_media_source"));
479 $tpl->setVariable(
"TXT_CONT_TITLE", $this->
lng->txt(
"cont_personal_clipboard"));
480 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_mobs"));
481 $tpl->setVariable(
"COLSPAN",
"2");
483 foreach ($objs as $obj) {
496 $fobjs = $med_pool->getChilds($this->parent_fold_id,
"fold");
498 foreach ($fobjs as $obj) {
499 $f2objs[$obj[
"title"] .
":" . $obj[
"child"]] = $obj;
503 $mobjs = $med_pool->getChilds($this->parent_fold_id,
"mob");
505 foreach ($mobjs as $obj) {
506 $m2objs[$obj[
"title"] .
":" . $obj[
"child"]] = $obj;
511 $objs = array_merge($f2objs, $m2objs);
513 $tpl->setCurrentBlock(
"chapter_list");
514 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"mep"));
515 $tpl->setVariable(
"TXT_CONT_TITLE", $med_pool->getTitle());
516 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_mobs"));
517 $tpl->setCurrentBlock(
"change_cont_obj");
518 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
519 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
520 $tpl->setVariable(
"COLSPAN",
"2");
521 $tpl->parseCurrentBlock();
522 if ($parent_id = $med_pool->getParentId($this->parent_fold_id)) {
523 $tpl->setCurrentBlock(
"icon");
525 $tpl->parseCurrentBlock();
526 $tpl->setCurrentBlock(
"link_row");
527 $tpl->setVariable(
"TXT_CHAPTER",
"..");
528 $this->
ctrl->setParameter($this,
"mep_fold", $parent_id);
529 if ($ilCtrl->isAsynch()) {
530 $tpl->setVariable(
"LINK",
"#");
533 " onclick=\"return il.IntLink.setMepPoolFolder('" . $parent_id .
"');\" " 538 $this->
ctrl->getLinkTarget($this,
"setMedPoolFolder")
541 $tpl->parseCurrentBlock();
542 $tpl->setCurrentBlock(
"row");
543 $tpl->parseCurrentBlock();
545 foreach ($objs as $obj) {
546 if ($obj[
"type"] ===
"fold") {
547 $tpl->setCurrentBlock(
"icon");
549 $tpl->parseCurrentBlock();
550 $tpl->setCurrentBlock(
"link_row");
551 $tpl->setVariable(
"TXT_CHAPTER", $obj[
"title"]);
552 $this->
ctrl->setParameter($this,
"mep_fold", $obj[
"child"]);
553 if ($ilCtrl->isAsynch()) {
554 $tpl->setVariable(
"LINK",
"#");
557 " onclick=\"return il.IntLink.setMepPoolFolder('" . $obj[
"child"] .
"');\" " 562 $this->
ctrl->getLinkTarget($this,
"setMedPoolFolder")
565 $tpl->parseCurrentBlock();
579 $tpl->setCurrentBlock(
"row");
580 $tpl->parseCurrentBlock();
583 $tpl->setCurrentBlock(
"chapter_list");
584 $tpl->parseCurrentBlock();
593 $tpl->setCurrentBlock(
"chapter_list");
594 $tpl->setVariable(
"TXT_CONTENT_OBJECT", $this->
lng->txt(
"obj_wiki"));
596 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"link_wpages"));
597 $tpl->setCurrentBlock(
"change_cont_obj");
598 $tpl->setVariable(
"CMD_CHANGE_CONT_OBJ",
"changeTargetObject");
599 $tpl->setVariable(
"BTN_CHANGE_CONT_OBJ", $this->
lng->txt(
"change"));
600 $tpl->parseCurrentBlock();
602 foreach ($wpages as $wpage) {
613 $tpl->setCurrentBlock(
"chapter_list");
614 $tpl->parseCurrentBlock();
618 case "PortfolioPage":
619 case "PortfolioTemplatePage":
624 $tpl->setCurrentBlock(
"chapter_list");
627 $tpl->setVariable(
"THEAD", $this->
lng->txt(
"copg_pages"));
629 foreach ($ppages as $ppage) {
642 $tpl->setCurrentBlock(
"chapter_list");
643 $tpl->parseCurrentBlock();
647 case "RepositoryItem":
653 if (!isset($this->uploaded_file)) {
663 $tpl->setVariable(
"LINK_HELP_CONTENT", $this->
addUser());
667 if ($ilCtrl->isAsynch()) {
683 $tpl =
new ilTemplate(
"tpl.link_file.html",
true,
true,
"components/ILIAS/COPage/IntLink");
684 if (!is_object($this->uploaded_file)) {
685 $tpl->setCurrentBlock(
"form");
688 $ilCtrl->getFormAction($this,
"saveFileLink",
"",
true)
690 $tpl->setVariable(
"TXT_SELECT_FILE", $lng->
txt(
"cont_select_file"));
691 $tpl->setVariable(
"TXT_SAVE_LINK", $lng->
txt(
"cont_create_link"));
692 $tpl->setVariable(
"CMD_SAVE_LINK",
"saveFileLink");
695 $tpl->setVariable(
"INPUT", $fi->getToolbarHTML());
696 $tpl->parseCurrentBlock();
698 $tpl->setCurrentBlock(
"link_js");
704 '[iln dfile=\x22' . $this->uploaded_file->getId() .
'\x22]' 712 $this->uploaded_file->getTitle()
724 if ($_FILES[
"link_file"][
"name"] !=
"") {
726 $fileObj->setType(
"file");
727 $fileObj->setTitle($_FILES[
"link_file"][
"name"]);
728 $fileObj->setDescription(
"");
729 $fileObj->setFileName($_FILES[
"link_file"][
"name"]);
730 $fileObj->setMode(
"filelist");
733 $fileObj->getUploadFile(
734 $_FILES[
"link_file"][
"tmp_name"],
735 $_FILES[
"link_file"][
"name"]
737 $this->uploaded_file = $fileObj;
762 $this->thumbs_gui->getThumbHtml($a_id)
778 $ctrl->
setParameter($this,
"link_type", $this->request->getLinkType());
779 $base_type = explode(
"_", $this->request->getLinkType())[0];
785 $ctrl->
redirect($this,
"showLinkHelp",
"",
true);
794 $ctrl->
setParameter($this,
"link_par_fold_id", $this->request->getMediaPoolFolder());
795 $ctrl->
redirect($this,
"showLinkHelp",
"",
true);
808 $white = array(
"root",
"cat",
"crs",
"fold",
"grp");
811 $exp->setClickableType($a_type);
812 if ($a_type ===
"prtf") {
814 $exp->setClickableType(
"prtt");
817 $exp->setTypeWhiteList($white);
820 if (!$exp->handleCommand()) {
821 return $exp->getHTML();
835 if ($this->request->getDo() ===
"set") {
836 $ilCtrl->setParameter($this,
"link_par_ref_id", $this->request->getSelectedId());
837 $ilCtrl->redirect($this,
"showLinkHelp",
"",
true);
841 $ilCtrl->setParameter($this,
"link_type", $this->link_type);
843 $tpl =
new ilTemplate(
"tpl.link_help_explorer.html",
true,
true,
"components/ILIAS/COPage/IntLink");
847 $tpl->setVariable(
"TXT_EXPLORER_HEADER", $this->
lng->txt(
"cont_choose_" . ($this->parent_type[$this->base_link_type] ??
"")));
849 $tpl->setVariable(
"EXPLORER", $output);
850 $tpl->setVariable(
"ACTION", $this->
ctrl->getFormAction($this,
"resetLinkList",
"",
true));
851 $tpl->setVariable(
"BTN_RESET",
"resetLinkList");
852 $tpl->setVariable(
"TXT_RESET", $this->
lng->txt(
"back"));
854 if (($this->parent_type[$this->base_link_type] ??
"") ===
"mep") {
855 $tpl->setCurrentBlock(
"sel_clipboard");
856 $this->
ctrl->setParameter($this,
"do",
"set");
857 if ($ilCtrl->isAsynch()) {
858 $tpl->setVariable(
"LINK_CLIPBOARD",
"#");
861 " onclick=\"return il.IntLink.selectLinkTargetObject('mep', 0, '" . $this->link_type .
"');\" " 864 $tpl->setVariable(
"LINK_CLIPBOARD", $this->
ctrl->getLinkTarget($this,
"changeTargetObject"));
866 $tpl->setVariable(
"TXT_PERS_CLIPBOARD", $this->
lng->txt(
"clipboard"));
867 $tpl->parseCurrentBlock();
870 $tpl->parseCurrentBlock();
889 if (!$exp->handleCommand()) {
890 return $exp->getHTML();
907 return "il.Util.addOnLoad(function() {il.IntLink.init({url: '$a_url'});});";
917 $lng = $DIC->language();
921 self::getOnloadCode($a_url)
928 $tpl->addJavaScript(
"assets/js/ilExplorer.js");
932 $tpl->addJavascript(
"../components/ILIAS/COPage/IntLink/resources/ilIntLink.js");
934 $tpl->addJavascript(
"assets/js/ilIntLink.js");
938 $tpl->addJavaScript(
"assets/js/Form.js");
940 $mt = self::getModalTemplate();
941 $tpl->addOnLoadCode(
'il.IntLink.setModalTemplate("' . addslashes(json_encode($mt[
"template"])) .
'");');
943 $html =
"<div id='ilIntLinkModal' data-show-signal='" . $mt[
"show"] .
"' data-close-signal='" . $mt[
"close"] .
"'></div>";
952 $lng = $DIC->language();
955 $modal = $ui->factory()->modal()->roundtrip($lng->
txt(
"link_link"), $ui->factory()->legacy()->content(
"<div id='ilIntLinkModalContent'></div>"));
956 $modalt[
"show"] = $modal->getShowSignal()->getId();
957 $modalt[
"close"] = $modal->getCloseSignal()->getId();
958 $modalt[
"template"] = $ui->renderer()->renderAsync($modal);
972 string $a_type_short,
974 array $a_anchors = array(),
975 string $a_link_content =
"" 977 $chapterRowBlock =
"chapter_row_js";
978 $anchor_row_block =
"anchor_link_js";
980 $target_str = ($this->link_target ===
"")
982 :
" target=\"" . $this->link_target .
"\"";
984 if (count($a_anchors) > 0) {
985 foreach ($a_anchors as $anchor) {
1002 $this->
prepareJavascriptOutput(
"[iln " . $a_bb_type .
"=\"" . $a_obj_id .
"\"" . $target_str .
" anchor=\"$anchor\"]")
1013 if ($a_type ===
"MediaObject") {
1022 "linktype=" . $a_type .
1023 "&linktarget=il__" . $a_type_short .
"_" . $a_obj_id .
1024 "&linktargetframe=" . $this->link_target
1029 if ($a_type ===
"MediaObject") {
1034 if ($a_type ===
"MediaObject" && empty($target_str)) {
1045 $tpl->
setVariable(
"LINK_CONTENT", $a_link_content);
1070 $form->setId(
"link_user_search_form");
1074 $ti->setValue($this->request->getUserSearchStr());
1075 $form->addItem($ti);
1077 $form->addCommandButton(
"searchUser", $this->
lng->txt(
"search"));
1089 $lng = $DIC->language();
1091 if (strlen($this->request->getUserSearchStr()) < 3) {
1092 if (strlen($this->request->getUserSearchStr()) > 0) {
1101 $form->checkInput();
1104 if (count($users) === 0) {
1108 $f = $DIC->ui()->factory();
1109 $r = $DIC->ui()->renderer();
1110 $lng = $DIC->language();
1112 foreach ($users as $user) {
1113 $b = $f->button()->standard($lng->
txt(
"insert"),
"#")
1116 '$("#' .
$id .
"\").click(function(ev) { il.IntLink.addInternalLink('[iln user=\"" .
1121 ->withSections(array(
$b));
1123 $deck = $f->deck($cards)->withLargeCardsSize();
1125 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...
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...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__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.
redirect(object $a_gui_obj, ?string $a_cmd=null, ?string $a_anchor=null, bool $is_async=false)
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.
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 init(?ilGlobalTemplateInterface $a_main_tpl=null)
static getModalTemplate()
refreshRepositorySelector()
Refresh Repository Selector.
static _lookupLogin(int $a_user_id)