5 require_once
"./Services/Object/classes/class.ilObject2GUI.php";
6 include_once(
'./Modules/WebResource/classes/class.ilParameterAppender.php');
7 require_once
'Services/LinkChecker/interfaces/interface.ilLinkCheckerGUIRowHandling.php';
43 if(
$_GET[
"baseClass"] ==
'ilLinkResourceHandlerGUI')
46 $ilCtrl->saveParameter($this,
'view_mode');
50 $this->lng->loadLanguageModule(
"webr");
52 $next_class = $this->ctrl->getNextClass($this);
53 $cmd = $this->ctrl->getCmd();
57 case "ilinfoscreengui":
62 if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
64 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
68 $ilTabs->activateTab(
'id_meta_data');
69 include_once
'Services/MetaData/classes/class.ilMDEditorGUI.php';
70 $md_gui =&
new ilMDEditorGUI($this->object->getId(), 0, $this->
object->getType());
71 $md_gui->
addObserver($this->
object,
'MDUpdateListener',
'General');
72 $this->ctrl->forwardCommand($md_gui);
75 case 'ilpermissiongui':
77 $ilTabs->activateTab(
'id_permissions');
78 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
80 $ret =& $this->ctrl->forwardCommand($perm_gui);
83 case 'ilobjectcopygui':
85 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
88 $this->ctrl->forwardCommand($cp);
93 $this->tabs_gui->setTabActive(
'export');
94 include_once
'./Services/Export/classes/class.ilExportGUI.php';
96 $exp->addFormat(
'xml');
97 $this->ctrl->forwardCommand($exp);
100 case "ilcommonactiondispatchergui":
101 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
103 $this->ctrl->forwardCommand($gui);
106 case "ilpropertyformgui":
107 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
109 $this->ctrl->forwardCommand($this->form);
112 case "ilinternallinkgui":
113 $this->lng->loadLanguageModule(
"content");
114 require_once(
"./Modules/LearningModule/classes/class.ilInternalLinkGUI.php");
116 $link_gui->filterLinkType(
"PageObject");
117 $link_gui->filterLinkType(
"GlossaryItem");
118 $link_gui->filterLinkType(
"RepositoryItem");
119 $link_gui->setFilterWhiteList(
true);
120 $link_gui->setMode(
"asynch");
121 $ilCtrl->forwardCommand($link_gui);
127 $this->ctrl->setCmd(
"view");
135 include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
169 $this->form->setValuesByPost();
170 $this->tpl->setContent($this->form->getHTML());
177 $this->link->setLinkResourceId($a_new_object->
getId());
178 $link_id = $this->link->add();
179 $this->link->updateValid(
true);
184 if($this->id_type == self::WORKSPACE_NODE_ID)
186 $this->ctrl->redirect($this,
"editLinks");
192 $a_new_object->
getRefId().
"&cmd=switchViewMode&switch_mode=2");
206 $ilTabs->activateTab(
'id_settings');
209 $this->tpl->setContent($this->form->getHTML());
221 $ilTabs->activateTab(
'id_settings');
224 if($this->form->checkInput())
226 $this->
object->setTitle($this->form->getInput(
'tit'));
227 $this->
object->setDescription($this->form->getInput(
'des'));
228 $this->
object->update();
230 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
236 $this->ctrl->redirect($this,
'settings');
239 $this->form->setValuesByPost();
241 $this->tpl->setContent($this->form->getHTML());
251 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
253 $this->form->setFormAction($this->ctrl->getFormAction($this,
'saveSettings'));
254 $this->form->setTitle($this->lng->txt(
'webr_edit_settings'));
257 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'tit');
258 $tit->
setValue($this->object->getTitle());
259 $tit->setRequired(
true);
261 $tit->setMaxLength(127);
262 $this->form->addItem($tit);
266 $des->
setValue($this->object->getDescription());
269 $this->form->addItem($des);
272 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
273 include_once
'./Services/Container/classes/class.ilContainer.php';
277 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
281 $this->lng->txt(
'webr_sort_title'),
284 $sor->addOption($opt);
287 $this->lng->txt(
'webr_sort_manual'),
290 $sor->addOption($opm);
291 $this->form->addItem($sor);
293 $this->form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
294 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
309 if(!(
int)
$_GET[
'link_id'])
312 $ilCtrl->redirect($this,
'view');
317 $this->tpl->setContent($this->form->getHTML());
331 $this->link->setLinkId((
int)
$_REQUEST[
'link_id']);
332 $this->link->update();
335 $this->dynamic->add((
int) $_REQUEST[
'link_id']);
340 $this->
object->setTitle($this->form->getInput(
'tit'));
341 $this->
object->setDescription($this->form->getInput(
'des'));
342 $this->
object->update();
346 $ilCtrl->redirect($this,
'view');
349 $this->form->setValuesByPost();
350 $this->tpl->setContent($this->form->getHTML());
363 $this->tpl->setContent($this->form->getHTML());
377 if($this->
checkLinkInput(self::LINK_MOD_ADD,$this->object->getId(),0))
382 $this->
object->setTitle($this->form->getInput(
'lti'));
383 $this->
object->setDescription($this->form->getInput(
'tde'));
384 $this->
object->update();
388 $link_id = $this->link->add();
389 $this->link->updateValid(
true);
394 $this->dynamic->add($link_id);
397 $ilCtrl->redirect($this,
'view');
401 $this->form->setValuesByPost();
404 $this->tpl->setContent($this->form->getHTML());
417 $this->ctrl->setParameter($this,
'link_id',(
int)
$_GET[
'link_id']);
419 if(!isset($_GET[
'param_id']))
422 $ilCtrl->redirect($this,
'view');
425 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
427 $param->
delete((
int) $_GET[
'param_id']);
430 $ilCtrl->redirect($this,
'editLinks');
439 if(!isset(
$_GET[
'param_id']))
442 $ilCtrl->redirect($this,
'view');
445 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
450 $ilCtrl->redirect($this,
'view');
466 if(!is_array(
$_POST[
'ids']))
469 $ilCtrl->redirect($this,
'view');
474 foreach(
$_POST[
'ids'] as $link_id)
479 if(
$_POST[
'tar_'.$link_id.
'_ajax_type'] &&
480 $_POST[
'tar_'.$link_id.
'_ajax_id'])
483 $_POST[
'tar_'.$link_id.
'_ajax_type'].
'|'.
484 $_POST[
'tar_'.$link_id.
'_ajax_id'];
488 if(!strlen(
$data[
'tit']))
490 $invalid[] = $link_id;
493 if(!strlen(
$data[
'tar']))
495 $invalid[] = $link_id;
500 $invalid[] = $link_id;
505 $invalid[] = $link_id;
513 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
515 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
517 $table->setInvalidLinks($invalid);
518 $table->parseSelectedLinks(
$_POST[
'ids']);
519 $table->updateFromPost();
520 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
524 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
528 foreach(
$_POST[
'ids'] as $link_id)
534 $links->setLinkId($link_id);
538 $links->setActiveStatus((
int)
$data[
'act']);
539 $links->setDisableCheckStatus((
int) $data[
'che']);
540 $links->setLastCheckDate($orig[
'last_check']);
541 $links->setValidStatus((
int) $data[
'vali']);
544 if(strlen($data[
'nam']) and $data[
'val'])
548 $param->setValue((
int) $data[
'val']);
549 $param->add($link_id);
556 $this->
object->update();
563 $ilCtrl->redirect($this,
'view');
573 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
576 $values = $link->
getItem($a_link_id);
582 $this->form->setValuesByArray(
584 'tit' => $values[
'title'],
585 'tar' => $values[
'target'],
586 'des' => $values[
'description'],
587 'act' => (
int) $values[
'active'],
588 'che' => (
int) $values[
'disable_check'],
589 'vali' => (
int) $values[
'valid']
604 $valid = $this->form->checkInput();
606 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
608 $this->link->setTarget(str_replace(
'"',
'',
ilUtil::stripSlashes($this->form->getInput(
'tar'))));
609 $this->link->setTitle($this->form->getInput(
'tit'));
610 $this->link->setDescription($this->form->getInput(
'des'));
611 $this->link->setDisableCheckStatus($this->form->getInput(
'che'));
613 if($a_mode == self::LINK_MOD_CREATE)
615 $this->link->setActiveStatus(
true);
619 $this->link->setActiveStatus($this->form->getInput(
'act'));
622 if($a_mode == self::LINK_MOD_EDIT)
624 $this->link->setValidStatus($this->form->getInput(
'vali'));
628 $this->link->setValidStatus(
true);
637 $this->dynamic->setName($this->form->getInput(
'nam'));
638 $this->dynamic->setValue($this->form->getInput(
'val'));
639 if(!$this->dynamic->validate())
641 switch($this->dynamic->getErrorCode())
644 $this->form->getItemByPostVar(
'nam')->setAlert($this->lng->txt(
'links_no_name_given'));
648 $this->form->getItemByPostVar(
'val')->setAlert($this->lng->txt(
'links_no_value_given'));
655 $this->dynamic = null;
670 $ilTabs->activateTab(
"id_content");
672 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
677 case self::LINK_MOD_CREATE:
679 $this->ctrl->setParameter($this,
'new_type',
'webr');
680 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
681 $this->form->setTableWidth(
'600px');
684 $this->form->addCommandButton(
'save', $this->lng->txt(
'webr_add'));
685 $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
688 case self::LINK_MOD_ADD:
690 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
693 $this->form->addCommandButton(
'saveAddLink', $this->lng->txt(
'webr_add'));
694 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
697 case self::LINK_MOD_EDIT:
699 $this->ctrl->setParameter($this,
'link_id',(
int)
$_REQUEST[
'link_id']);
700 $this->form->setTitle($this->lng->txt(
'webr_edit'));
703 $this->form->addCommandButton(
'updateLink', $this->lng->txt(
'save'));
704 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
709 $this->form->setFormAction($this->ctrl->getFormAction($this));
716 $this->form->setTitle($this->lng->txt(
'webr_edit_list'));
719 $title =
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'lti');
722 $title->setMaxLength(127);
723 $this->form->addItem($title);
729 $this->form->addItem($desc);
733 $sect->setTitle($this->lng->txt(
'webr_add'));
734 $this->form->addItem($sect);
745 include_once
'Services/Form/classes/class.ilLinkInputGUI.php';
746 $tar =
new ilLinkInputGUI($this->lng->txt(
'webr_link_target'),
'tar');
749 $tar->setRequired(
true);
750 $this->form->addItem($tar);
753 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_link_title'),
'tit');
756 $tit->setMaxLength(127);
757 $this->form->addItem($tit);
763 $this->form->addItem($des);
766 if($a_mode != self::LINK_MOD_CREATE)
772 $this->form->addItem($act);
777 $this->form->addItem($che);
781 if($a_mode == self::LINK_MOD_EDIT)
784 $this->form->addItem($val);
790 $dyn->
setInfo($this->lng->txt(
'links_dynamic_info'));
798 foreach($links as $id => $link)
802 $ptpl =
new ilTemplate(
'tpl.link_dyn_param_edit.html',
true,
true,
'Modules/WebResource');
804 $this->ctrl->setParameter($this,
'param_id',$id);
805 $ptpl->setVariable(
'LINK_DEL',$this->ctrl->getLinkTarget($this,
'deleteParameterForm'));
806 $ptpl->setVariable(
'LINK_TXT',$this->lng->txt(
'delete'));
807 $p->setHtml($ptpl->get());
808 $dyn->addSubItem($p);
815 if($a_mode != self::LINK_MOD_CREATE)
817 #$new = new ilCustomInputGUI($this->lng->txt('links_add_param'),'');
818 #$dyn->addSubItem($new);
824 $nam->setMaxLength(128);
825 $dyn->addSubItem($nam);
831 $dyn->addSubItem($val);
833 $this->form->addItem($dyn);
844 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
879 $ilTabs->activateTab(
"id_content");
883 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
892 case self::VIEW_MODE_MANAGE:
896 case self::VIEW_MODE_SORT:
905 $GLOBALS[
'tpl']->setPermanentLink($this->object->getType(),$this->
object->getRefId());
918 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
921 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
925 include_once
'./Modules/LearningModule/classes/class.ilInternalLinkGUI.php';
928 $this->tpl->addJavaScript(
"Modules/WebResource/js/intLink.js");
929 $this->tpl->addJavascript(
"Services/Form/js/Form.js");
931 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML().$js);
943 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
947 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
949 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
961 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
965 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
967 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
978 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
980 $sort->savePost((array)
$_POST[
'position']);
999 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1001 $tool->setFormAction($this->ctrl->getFormAction($this));
1003 $this->lng->txt(
'webr_add'),
1004 $this->ctrl->getLinkTarget($this,
'addLink')
1007 $this->tpl->setVariable($a_tpl_var,$tool->getHTML());
1020 $link_ids = array();
1022 if(is_array(
$_POST[
'link_ids']))
1024 $link_ids =
$_POST[
'link_ids'];
1026 elseif(isset(
$_GET[
'link_id']))
1028 $link_ids = array(
$_GET[
'link_id']);
1031 if(!count($link_ids) > 0)
1038 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1041 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1043 $confirm->setFormAction($this->ctrl->getFormAction($this,
'view'));
1044 $confirm->setHeaderText($this->lng->txt(
'webr_sure_delete_items'));
1045 $confirm->setConfirm($this->lng->txt(
'delete'),
'deleteLinks');
1046 $confirm->setCancel($this->lng->txt(
'cancel'),
'view');
1048 foreach($link_ids as $link_id)
1050 $link = $links->getItem($link_id);
1051 $confirm->addItem(
'link_ids[]', $link_id,$link[
'title']);
1053 $this->tpl->setContent($confirm->getHTML());
1066 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1069 foreach(
$_POST[
'link_ids'] as $link_id)
1071 $links->
delete($link_id);
1074 $ilCtrl->redirect($this,
'view');
1087 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1090 if(!
$_GET[
'link_id'])
1093 $ilCtrl->redirect($this,
'view');
1096 $links->setLinkId((
int)
$_GET[
'link_id']);
1097 $links->updateActive(
false);
1100 $ilCtrl->redirect($this,
'view');
1111 $this->ctrl->setCmd(
"showSummary");
1112 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1124 $ilTabs->activateTab(
'id_info');
1126 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1129 $info->enablePrivateNotes();
1132 $info->addMetaDataSections($this->object->getId(),0, $this->
object->getType());
1134 if($this->id_type == self::WORKSPACE_NODE_ID)
1140 $this->ctrl->forwardCommand($info);
1149 $ilTabs->activateTab(
'id_history');
1151 include_once(
"./Services/History/classes/class.ilHistoryGUI.php");
1157 "cmdClass" =>
$_GET[
"cmdClass"],
1158 "cmdNode" =>
$_GET[
"cmdNode"]));
1160 $this->tpl->setVariable(
"ADM_CONTENT", $hist_html);
1173 $this->
object->items_obj->readItem($row[
'page_id']);
1174 $row[
'title'] = $this->
object->items_obj->getTitle();
1176 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
1178 $actions->setSelectionHeaderClass(
'small');
1179 $actions->setItemLinkClass(
'xsmall');
1180 $actions->setListTitle($this->lng->txt(
'actions'));
1182 $this->ctrl->setParameter($this,
'link_id', $row[
'page_id']);
1184 $this->lng->txt(
'edit'),
1186 $this->ctrl->getLinkTarget($this,
'editLink')
1188 $this->ctrl->clearParameters($this);
1189 $row[
'action_html'] =
$actions->getHTML();
1203 $ilTabs->activateTab(
'id_link_check');
1206 $this->
object->initLinkResourceItemsObject();
1208 require_once
'./Services/LinkChecker/classes/class.ilLinkCheckerTableGUI.php';
1212 if((
bool)$ilias->getSetting(
'cron_web_resource_check'))
1214 include_once
'./Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
1215 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
1217 $chb =
new ilCheckboxInputGUI($this->lng->txt(
'link_check_message_a'),
'link_check_message');
1220 $chb->setOptionTitle($this->lng->txt(
'link_check_message_b'));
1222 $toolbar->addInputItem($chb);
1223 $toolbar->addFormButton($this->lng->txt(
'save'),
'saveLinkCheck');
1224 $toolbar->setFormAction($this->ctrl->getLinkTarget($this,
'saveLinkCheck'));
1228 $tgui->setLinkChecker($this->link_checker_obj)
1229 ->setRowHandler($this)
1230 ->setRefreshButton($this->lng->txt(
'refresh'),
'refreshLinkCheck');
1232 return $tpl->setContent($tgui->prepareHTML()->getHTML().$toolbar->getHTML());
1239 include_once
'./Services/LinkChecker/classes/class.ilLinkCheckNotify.php';
1242 $link_check_notify->setUserId($ilUser->getId());
1243 $link_check_notify->setObjId($this->object->getId());
1245 if(
$_POST[
'link_check_message'])
1248 $link_check_notify->addNotifier();
1253 $link_check_notify->deleteNotifier();
1266 if(!$this->link_checker_obj->checkPear())
1275 $this->
object->initLinkResourceItemsObject();
1278 $this->
object->items_obj->updateValidByCheck();
1280 foreach($this->link_checker_obj->checkWebResourceLinks() as $invalid)
1282 $this->
object->items_obj->readItem($invalid[
'page_id']);
1283 $this->
object->items_obj->setActiveStatus(
false);
1284 $this->
object->items_obj->setValidStatus(
false);
1285 $this->
object->items_obj->update(
false);
1288 $this->
object->items_obj->updateLastCheck();
1300 include_once
'./Services/LinkChecker/classes/class.ilLinkChecker.php';
1303 $this->link_checker_obj->setObjId($this->object->getId());
1319 switch($a_active_tab)
1324 $this->lng->loadLanguageModule(
'cntr');
1326 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_VIEW);
1327 $ilTabs->addSubTab(
'id_content_view',
1329 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1331 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_MANAGE);
1332 $ilTabs->addSubTab(
'id_content_manage',
1333 $lng->txt(
'cntr_manage'),
1334 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1336 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1337 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
1338 include_once
'./Services/Container/classes/class.ilContainer.php';
1342 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_SORT);
1343 $ilTabs->addSubTab(
'id_content_ordering',
1344 $this->lng->txt(
'cntr_ordering'),
1345 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1349 $ilCtrl->clearParameters($this);
1350 $ilTabs->activateSubTab($a_active_subtab);
1354 $ilTabs->activateTab(
'id_content');
1364 global $ilTabs,
$lng, $ilHelp;
1366 $ilHelp->setScreenIdComponent(
"webr");
1370 $ilTabs->addTab(
"id_content",
1371 $lng->txt(
"content"),
1372 $this->ctrl->getLinkTarget($this,
"view"));
1377 $ilTabs->addTab(
"id_info",
1378 $lng->txt(
"info_short"),
1379 $this->ctrl->getLinkTarget($this,
"infoScreen"));
1384 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1387 $ilTabs->addTab(
"id_settings",
1388 $lng->txt(
"settings"),
1389 $this->ctrl->getLinkTarget($this,
"settings"));
1396 $ilTabs->addTab(
"id_history",
1397 $lng->txt(
"history"),
1398 $this->ctrl->getLinkTarget($this,
"history"));
1404 if(@include_once(
'HTTP/Request.php'))
1406 $ilTabs->addTab(
"id_link_check",
1407 $lng->txt(
"link_check"),
1408 $this->ctrl->getLinkTarget($this,
"linkChecker"));
1414 $ilTabs->addTab(
"id_meta_data",
1415 $lng->txt(
"meta_data"),
1416 $this->ctrl->getLinkTargetByClass(
'ilmdeditorgui',
'listSection'));
1423 $this->lng->txt(
'export'),
1424 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
'')
1436 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
1437 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
1457 $this->tpl->addBlockFile(
"LOCATOR",
"locator",
"tpl.locator.html",
"Services/Locator");
1464 foreach ($tree->getPathFull($this->object->getRefId()) as $key =>
$row)
1474 $this->tpl->touchBlock(
'locator_separator_prefix');
1477 if (
$row[
"child"] > 0)
1479 $this->tpl->setCurrentBlock(
"locator_img");
1480 $this->tpl->setVariable(
"IMG_SRC",
1482 $this->tpl->setVariable(
"IMG_ALT",
1483 $lng->txt(
"obj_".$type));
1484 $this->tpl->parseCurrentBlock();
1487 $this->tpl->setCurrentBlock(
"locator_item");
1489 if(
$row[
"type"] ==
'webr')
1491 $this->tpl->setVariable(
"ITEM",$this->object->getTitle());
1492 $this->tpl->setVariable(
"LINK_ITEM",$this->ctrl->getLinkTarget($this));
1494 elseif (
$row[
"child"] != $tree->getRootId())
1496 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$row[
"child"]);
1497 $this->tpl->setVariable(
"ITEM",
$row[
"title"]);
1498 $this->tpl->setVariable(
"LINK_ITEM",
1499 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
""));
1503 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$row[
"child"]);
1504 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"repository"));
1505 $this->tpl->setVariable(
"LINK_ITEM",
1506 $ilCtrl->getLinkTargetByClass(
"ilrepositorygui",
""));
1508 $ilCtrl->setParameterByClass(
"ilrepositorygui",
"ref_id",
$_GET[
"ref_id"]);
1510 $this->tpl->parseCurrentBlock();
1513 $this->tpl->setVariable(
"TXT_LOCATOR",$this->lng->txt(
"locator"));
1514 $this->tpl->parseCurrentBlock();
1519 $obj_id = $this->
object->getId();
1522 include_once(
"./Services/Link/classes/class.ilLink.php");
1523 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1529 include_once
"Services/Form/classes/class.ilFormPropertyGUI.php";
1530 include_once
"Services/Form/classes/class.ilLinkInputGUI.php";
1534 $parts = explode(
"|", $url[
"target"]);
1535 if ($parts[0] ==
"page")
1539 if ($parts[0] ==
"term")
1546 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
1560 $obj_id = $this->
object->getId();
1562 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1564 $item = $items->getItem(
$_REQUEST[
"link_id"]);
1568 include_once
"Services/Form/classes/class.ilFormPropertyGUI.php";
1569 include_once
"Services/Form/classes/class.ilLinkInputGUI.php";
1572 $parts = explode(
"|", $item[
"target"]);
1573 if ($parts[0] ==
"page")
1577 include_once(
"./Services/Link/classes/class.ilLink.php");
1579 if ($parts[0] ==
"term")
1586 "&target=git_".$parts[1]);
1589 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
1606 require_once(
'Services/Tracking/classes/class.ilChangeEvent.php');
1614 function _goto($a_target, $a_additional = null)
1618 if($a_additional && substr($a_additional, -3) ==
"wsp")
1620 $_GET[
"baseClass"] =
"ilsharedresourceGUI";
1621 $_GET[
"wsp_id"] = $a_target;
1622 include(
"ilias.php");
1627 if ($ilAccess->checkAccess(
"read",
"", $a_target))
1629 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=$a_target");
1634 if ($ilAccess->checkAccess(
"visible",
"", $a_target))
1636 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=".$a_target.
"&cmd=infoScreen");
1640 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1649 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);