5 include_once
"./classes/class.ilObjectGUI.php";
6 include_once(
'./Modules/WebResource/classes/class.ilParameterAppender.php');
7 require_once
'Services/LinkChecker/interfaces/interface.ilLinkCheckerGUIRowHandling.php';
44 $this->ctrl->saveParameter($this,array(
"ref_id",
"cmdClass"));
46 $this->lng->loadLanguageModule(
'webr');
55 if(
$_GET[
"baseClass"] ==
'ilLinkResourceHandlerGUI')
58 $ilCtrl->saveParameter($this,
'view_mode');
62 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui" ||
69 $next_class = $this->ctrl->getNextClass($this);
70 $cmd = $this->ctrl->getCmd();
74 case "ilinfoscreengui":
79 $ilTabs->activateTab(
'id_meta_data');
80 include_once
'Services/MetaData/classes/class.ilMDEditorGUI.php';
81 $md_gui =&
new ilMDEditorGUI($this->object->getId(), 0, $this->
object->getType());
82 $md_gui->
addObserver($this->
object,
'MDUpdateListener',
'General');
83 $this->ctrl->forwardCommand($md_gui);
86 case 'ilpermissiongui':
87 $ilTabs->activateTab(
'id_permissions');
88 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
90 $ret =& $this->ctrl->forwardCommand($perm_gui);
93 case 'ilobjectcopygui':
94 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
97 $this->ctrl->forwardCommand($cp);
101 $this->tabs_gui->setTabActive(
'export');
102 include_once
'./Services/Export/classes/class.ilExportGUI.php';
104 $exp->addFormat(
'xml');
105 $this->ctrl->forwardCommand($exp);
123 include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
138 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_create.html',
'Modules/WebResource');
140 $this->tpl->setVariable(
'LINK_FORM',$this->form->getHTML());
145 $this->tpl->setVariable(
"IMPORT_FORM", $this->form->getHTML());
157 $lng->loadLanguageModule(
"webr");
159 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
161 $this->form->setTableWidth(
'600px');
162 $this->form->setTarget(
"_top");
165 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
168 $fi->setRequired(
true);
169 $this->form->addItem($fi);
171 $this->form->addCommandButton(
"importFile", $lng->txt(
"import"));
172 $this->form->addCommandButton(
"cancel", $lng->txt(
"cancel"));
173 $this->form->setTitle($lng->txt($a_new_type.
"_import"));
175 $this->form->setFormAction($ilCtrl->getFormAction($this));
190 if (!$rbacsystem->checkAccess(
"create", $this->object->getRefId(), $new_type))
192 $ilErr->raiseError($this->lng->txt(
'no_create_permission'),$ilErr->MESSAGE);
194 $this->ctrl->setParameter($this,
"new_type", $new_type);
196 if ($this->form->checkInput())
198 include_once
'./Services/Export/classes/class.ilImport.php';
200 $new_id = $imp->importObject(null, $_FILES[
"importfile"][
"tmp_name"],$_FILES[
"importfile"][
"name"], $new_type);
206 $newObj->createReference();
207 $newObj->putInTree($_GET[
"ref_id"]);
208 $newObj->setPermissions($_GET[
"ref_id"]);
210 $this->ctrl->returnToParent($this);
215 $this->form->setValuesByPost();
216 $tpl->setContent($this->form->getHtml());
237 $this->link->setLinkResourceId($link_list->getId());
238 $link_id = $this->link->add();
243 $this->dynamic->setObjId($link_list->getId());
244 $this->dynamic->add($link_id);
249 $link_list->getRefId().
"&cmd=view");
254 $this->form->setValuesByPost();
256 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_create.html',
'Modules/WebResource');
257 $this->tpl->setVariable(
'LINK_FORM',$this->form->getHTML());
263 if (
$_POST[
"Fobject"][
"title"] ==
"")
281 $ilTabs->activateTab(
'id_settings');
284 $this->tpl->setContent($this->form->getHTML());
296 $ilTabs->activateTab(
'id_settings');
299 if($this->form->checkInput())
301 $this->
object->setTitle($this->form->getInput(
'tit'));
302 $this->
object->setDescription($this->form->getInput(
'des'));
303 $this->
object->update();
305 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
311 $this->ctrl->redirect($this,
'settings');
314 $this->form->setValuesByPost();
316 $this->tpl->setContent($this->form->getHTML());
326 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
328 $this->form->setFormAction($this->ctrl->getFormAction($this,
'saveSettings'));
329 $this->form->setTitle($this->lng->txt(
'webr_edit_settings'));
332 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'tit');
333 $tit->
setValue($this->object->getTitle());
334 $tit->setRequired(
true);
336 $tit->setMaxLength(127);
337 $this->form->addItem($tit);
341 $des->
setValue($this->object->getDescription());
344 $this->form->addItem($des);
347 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
348 include_once
'./Services/Container/classes/class.ilContainer.php';
352 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
356 $this->lng->txt(
'webr_sort_title'),
359 $sor->addOption($opt);
362 $this->lng->txt(
'webr_sort_manual'),
365 $sor->addOption($opm);
366 $this->form->addItem($sor);
368 $this->form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
369 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
384 if(!(
int)
$_GET[
'link_id'])
387 $ilCtrl->redirect($this,
'view');
392 $this->tpl->setContent($this->form->getHTML());
406 $this->link->setLinkId((
int)
$_REQUEST[
'link_id']);
407 $this->link->update();
410 $this->dynamic->add((
int) $_REQUEST[
'link_id']);
415 $this->
object->setTitle($this->form->getInput(
'tit'));
416 $this->
object->setDescription($this->form->getInput(
'des'));
417 $this->
object->update();
421 $ilCtrl->redirect($this,
'view');
424 $this->form->setValuesByPost();
425 $this->tpl->setContent($this->form->getHTML());
438 $this->tpl->setContent($this->form->getHTML());
452 if($this->
checkLinkInput(self::LINK_MOD_ADD,$this->object->getId(),0))
457 $this->
object->setTitle($this->form->getInput(
'lti'));
458 $this->
object->setDescription($this->form->getInput(
'lde'));
459 $this->
object->update();
463 $link_id = $this->link->add();
468 $this->dynamic->add($link_id);
471 $ilCtrl->redirect($this,
'view');
475 $this->form->setValuesByPost();
478 $this->tpl->setContent($this->form->getHTML());
491 $this->ctrl->setParameter($this,
'link_id',(
int)
$_GET[
'link_id']);
493 if(!isset($_GET[
'param_id']))
496 $ilCtrl->redirect($this,
'view');
499 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
501 $param->
delete((
int) $_GET[
'param_id']);
504 $ilCtrl->redirect($this,
'editLink');
513 if(!isset(
$_GET[
'param_id']))
516 $ilCtrl->redirect($this,
'view');
519 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
524 $ilCtrl->redirect($this,
'view');
540 if(!is_array(
$_POST[
'ids']))
543 $ilCtrl->redirect($this,
'view');
548 foreach(
$_POST[
'ids'] as $link_id)
552 if(!strlen(
$data[
'tit']))
554 $invalid[] = $link_id;
557 if(!strlen(
$data[
'tar']))
559 $invalid[] = $link_id;
564 $invalid[] = $link_id;
569 $invalid[] = $link_id;
577 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
579 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
581 $table->setInvalidLinks($invalid);
582 $table->parseSelectedLinks(
$_POST[
'ids']);
583 $table->updateFromPost();
584 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
588 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
592 foreach(
$_POST[
'ids'] as $link_id)
596 $links->setLinkId($link_id);
600 $links->setActiveStatus((
int)
$data[
'act']);
601 $links->setDisableCheckStatus((
int) $data[
'che']);
602 $links->setValidStatus((
int) $data[
'vali']);
605 if(strlen($data[
'nam']) and $data[
'val'])
609 $param->setValue((
int) $data[
'val']);
610 $param->add($link_id);
617 $this->
object->update();
624 $ilCtrl->redirect($this,
'view');
634 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
637 $values = $link->
getItem($a_link_id);
643 $this->form->setValuesByArray(
645 'tit' => $values[
'title'],
646 'tar' => $values[
'target'],
647 'des' => $values[
'description'],
648 'act' => (
int) $values[
'active'],
649 'che' => (
int) $values[
'disable_check'],
650 'vali' => (
int) $values[
'valid']
665 $valid = $this->form->checkInput();
667 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
669 $this->link->setTarget($this->form->getInput(
'tar'));
670 $this->link->setTitle($this->form->getInput(
'tit'));
671 $this->link->setDescription($this->form->getInput(
'des'));
672 $this->link->setDisableCheckStatus($this->form->getInput(
'che'));
673 $this->link->setActiveStatus($this->form->getInput(
'act'));
675 if($a_mode == self::LINK_MOD_EDIT)
677 $this->link->setValidStatus($this->form->getInput(
'val'));
686 $this->dynamic->setName($this->form->getInput(
'nam'));
687 $this->dynamic->setValue($this->form->getInput(
'val'));
688 if(!$this->dynamic->validate())
690 switch($this->dynamic->getErrorCode())
693 $this->form->getItemByPostVar(
'nam')->setAlert($this->lng->txt(
'links_no_name_given'));
697 $this->form->getItemByPostVar(
'val')->setAlert($this->lng->txt(
'links_no_value_given'));
704 $this->dynamic = null;
719 $ilTabs->activateTab(
"id_content");
721 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
726 case self::LINK_MOD_CREATE:
728 $this->ctrl->setParameter($this,
'new_type',
'webr');
729 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
730 $this->form->setTableWidth(
'600px');
733 $this->form->addCommandButton(
'save', $this->lng->txt(
'webr_add'));
734 $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
737 case self::LINK_MOD_ADD:
739 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
742 $this->form->addCommandButton(
'saveAddLink', $this->lng->txt(
'webr_add'));
743 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
746 case self::LINK_MOD_EDIT:
748 $this->ctrl->setParameter($this,
'link_id',(
int)
$_REQUEST[
'link_id']);
749 $this->form->setTitle($this->lng->txt(
'webr_edit'));
752 $this->form->addCommandButton(
'updateLink', $this->lng->txt(
'save'));
753 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
758 $this->form->setFormAction($this->ctrl->getFormAction($this));
765 $this->form->setTitle($this->lng->txt(
'webr_edit_list'));
769 $title->setRequired(
true);
771 $title->setMaxLength(127);
772 $this->form->addItem(
$title);
778 $this->form->addItem(
$desc);
782 $sect->setTitle($this->lng->txt(
'webr_add'));
783 $this->form->addItem($sect);
787 $tar =
new ilTextInputGUI($this->lng->txt(
'webr_link_target'),
'tar');
789 $tar->setRequired(
true);
791 $tar->setMaxLength(500);
792 $this->form->addItem($tar);
795 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_link_title'),
'tit');
798 $tit->setMaxLength(127);
799 $this->form->addItem($tit);
805 $this->form->addItem($des);
811 $this->form->addItem($act);
816 $this->form->addItem($che);
819 if($a_mode == self::LINK_MOD_EDIT)
822 $this->form->addItem($val);
828 $dyn->
setInfo($this->lng->txt(
'links_dynamic_info'));
836 foreach($links as $id => $link)
840 $ptpl =
new ilTemplate(
'tpl.link_dyn_param_edit.html',
true,
true,
'Modules/WebResource');
842 $this->ctrl->setParameter($this,
'param_id',$id);
843 $ptpl->setVariable(
'LINK_DEL',$this->ctrl->getLinkTarget($this,
'deleteParameterForm'));
844 $ptpl->setVariable(
'LINK_TXT',$this->lng->txt(
'delete'));
845 $p->setHtml($ptpl->get());
846 $dyn->addSubItem($p);
853 if($a_mode == self::LINK_MOD_EDIT)
855 #$new = new ilCustomInputGUI($this->lng->txt('links_add_param'),'');
856 #$dyn->addSubItem($new);
862 $nam->setMaxLength(128);
863 $dyn->addSubItem($nam);
869 $dyn->addSubItem($val);
871 $this->form->addItem($dyn);
882 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
915 global $ilAccess,
$ilErr, $ilTabs;
917 $ilTabs->activateTab(
"id_content");
921 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
930 case self::VIEW_MODE_MANAGE:
934 case self::VIEW_MODE_SORT:
955 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
958 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
962 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
974 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
978 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
980 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
992 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
996 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
998 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
1009 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
1011 $sort->savePost((array)
$_POST[
'position']);
1027 if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1032 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1034 $tool->setFormAction($this->ctrl->getFormAction($this));
1036 $this->lng->txt(
'webr_add'),
1037 $this->ctrl->getLinkTarget($this,
'addLink')
1040 $this->tpl->setVariable($a_tpl_var,$tool->getHTML());
1053 $link_ids = is_array(
$_POST[
'link_ids']) ?
1055 array(
$_GET[
'link_id']);
1064 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1067 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1069 $confirm->setFormAction($this->ctrl->getFormAction($this,
'view'));
1070 $confirm->setHeaderText($this->lng->txt(
'webr_sure_delete_items'));
1071 $confirm->setConfirm($this->lng->txt(
'delete'),
'deleteLinks');
1072 $confirm->setCancel($this->lng->txt(
'cancel'),
'view');
1074 foreach($link_ids as $link_id)
1076 $link = $links->getItem($link_id);
1077 $confirm->addItem(
'link_ids[]', $link_id,$link[
'title']);
1079 $this->tpl->setContent($confirm->getHTML());
1092 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1095 foreach(
$_POST[
'link_ids'] as $link_id)
1097 $links->
delete($link_id);
1100 $ilCtrl->redirect($this,
'view');
1113 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1116 if(!
$_GET[
'link_id'])
1119 $ilCtrl->redirect($this,
'view');
1122 $links->setLinkId((
int)
$_GET[
'link_id']);
1123 $links->updateActive(
false);
1126 $ilCtrl->redirect($this,
'view');
1137 $this->ctrl->setCmd(
"showSummary");
1138 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1147 global $ilAccess, $ilTabs;
1150 $ilTabs->activateTab(
'id_info');
1152 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1155 $info->enablePrivateNotes();
1158 $info->addMetaDataSections($this->object->getId(),0, $this->
object->getType());
1161 $this->ctrl->forwardCommand($info);
1170 $ilTabs->activateTab(
'id_history');
1172 include_once(
"classes/class.ilHistoryGUI.php");
1178 "cmdClass" =>
$_GET[
"cmdClass"],
1179 "cmdNode" =>
$_GET[
"cmdNode"]));
1181 $this->tpl->setVariable(
"ADM_CONTENT", $hist_html);
1194 $this->
object->items_obj->readItem($row[
'page_id']);
1195 $row[
'title'] = $this->
object->items_obj->getTitle();
1197 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
1199 $actions->setSelectionHeaderClass(
'small');
1200 $actions->setItemLinkClass(
'xsmall');
1201 $actions->setListTitle($this->lng->txt(
'actions'));
1203 $this->ctrl->setParameter($this,
'link_id', $row[
'page_id']);
1205 $this->lng->txt(
'edit'),
1207 $this->ctrl->getLinkTarget($this,
'editLink')
1209 $this->ctrl->clearParameters($this);
1210 $row[
'action_html'] =
$actions->getHTML();
1224 $ilTabs->activateTab(
'id_link_check');
1227 $this->
object->initLinkResourceItemsObject();
1229 require_once
'Services/LinkChecker/classes/class.ilLinkCheckerTableGUI.php';
1233 if((
bool)$ilias->getSetting(
'cron_web_resource_check'))
1235 include_once
'classes/class.ilLinkCheckNotify.php';
1236 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
1238 $chb =
new ilCheckboxInputGUI($this->lng->txt(
'link_check_message_a'),
'link_check_message');
1241 $chb->setOptionTitle($this->lng->txt(
'link_check_message_b'));
1243 $toolbar->addInputItem($chb);
1244 $toolbar->addFormButton($this->lng->txt(
'save'),
'saveLinkCheck');
1245 $toolbar->setFormAction($this->ctrl->getLinkTarget($this,
'saveLinkCheck'));
1249 $tgui->setLinkChecker($this->link_checker_obj)
1250 ->setRowHandler($this)
1251 ->setRefreshButton($this->lng->txt(
'refresh'),
'refreshLinkCheck');
1253 return $tpl->setContent($tgui->prepareHTML()->getHTML().$toolbar->getHTML());
1258 global
$ilDB,$ilUser;
1260 include_once
'./classes/class.ilLinkCheckNotify.php';
1263 $link_check_notify->setUserId($ilUser->getId());
1264 $link_check_notify->setObjId($this->object->getId());
1266 if(
$_POST[
'link_check_message'])
1269 $link_check_notify->addNotifier();
1274 $link_check_notify->deleteNotifier();
1287 if(!$this->link_checker_obj->checkPear())
1296 $this->
object->initLinkResourceItemsObject();
1299 $this->
object->items_obj->updateValidByCheck();
1301 foreach($this->link_checker_obj->checkWebResourceLinks() as $invalid)
1303 $this->
object->items_obj->readItem($invalid[
'page_id']);
1304 $this->
object->items_obj->setActiveStatus(
false);
1305 $this->
object->items_obj->setValidStatus(
false);
1306 $this->
object->items_obj->update(
false);
1309 $this->
object->items_obj->updateLastCheck();
1321 include_once
'./classes/class.ilLinkChecker.php';
1324 $this->link_checker_obj->setObjId($this->object->getId());
1340 switch($a_active_tab)
1343 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1345 $this->lng->loadLanguageModule(
'cntr');
1347 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_VIEW);
1348 $ilTabs->addSubTab(
'id_content_view',
1350 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1352 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_MANAGE);
1353 $ilTabs->addSubTab(
'id_content_manage',
1354 $lng->txt(
'cntr_manage'),
1355 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1357 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1358 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
1359 include_once
'./Services/Container/classes/class.ilContainer.php';
1363 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_SORT);
1364 $ilTabs->addSubTab(
'id_content_ordering',
1365 $this->lng->txt(
'cntr_ordering'),
1366 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1370 $ilCtrl->clearParameters($this);
1371 $ilTabs->activateSubTab($a_active_subtab);
1375 $ilTabs->activateTab(
'id_content');
1385 global $ilAccess, $ilTabs,
$lng;
1387 if ($ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
1389 $ilTabs->addTab(
"id_content",
1390 $lng->txt(
"content"),
1391 $this->ctrl->getLinkTarget($this,
"view"));
1394 if ($ilAccess->checkAccess(
'visible',
'',$this->ref_id))
1396 $ilTabs->addTab(
"id_info",
1397 $lng->txt(
"info_short"),
1398 $this->ctrl->getLinkTarget($this,
"infoScreen"));
1401 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()) and !$this->
getCreationMode())
1403 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1406 $ilTabs->addTab(
"id_settings",
1407 $lng->txt(
"settings"),
1408 $this->ctrl->getLinkTarget($this,
"settings"));
1413 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1415 $ilTabs->addTab(
"id_history",
1416 $lng->txt(
"history"),
1417 $this->ctrl->getLinkTarget($this,
"history"));
1420 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1423 if(@include_once(
'HTTP/Request.php'))
1425 $ilTabs->addTab(
"id_link_check",
1426 $lng->txt(
"link_check"),
1427 $this->ctrl->getLinkTarget($this,
"linkChecker"));
1431 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1433 $ilTabs->addTab(
"id_meta_data",
1434 $lng->txt(
"meta_data"),
1435 $this->ctrl->getLinkTargetByClass(
'ilmdeditorgui',
'listSection'));
1438 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1442 $this->lng->txt(
'export'),
1443 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
'')
1447 if ($ilAccess->checkAccess(
'edit_permission',
'',$this->object->getRefId()))
1449 $ilTabs->addTab(
"id_permissions",
1450 $lng->txt(
"perm_settings"),
1451 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"));
1460 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
1461 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
1481 include_once
'./classes/class.ilTabsGUI.php';
1483 $this->tpl->setCurrentBlock(
"header_image");
1485 $this->tpl->parseCurrentBlock();
1486 $this->tpl->setVariable(
"HEADER",$this->object->getTitle());
1487 $this->tpl->setVariable(
"H_DESCRIPTION",$this->object->getDescription());
1495 global $ilias_locator,
$lng;
1497 $this->tpl->addBlockFile(
"LOCATOR",
"locator",
"tpl.locator.html",
"Services/Locator");
1504 foreach ($tree->getPathFull($this->object->getRefId()) as $key =>
$row)
1514 $this->tpl->touchBlock(
'locator_separator_prefix');
1517 if (
$row[
"child"] > 0)
1519 $this->tpl->setCurrentBlock(
"locator_img");
1520 $this->tpl->setVariable(
"IMG_SRC",
1522 $this->tpl->setVariable(
"IMG_ALT",
1523 $lng->txt(
"obj_".$type));
1524 $this->tpl->parseCurrentBlock();
1527 $this->tpl->setCurrentBlock(
"locator_item");
1529 if(
$row[
"type"] ==
'webr')
1531 $this->tpl->setVariable(
"ITEM",$this->object->getTitle());
1532 $this->tpl->setVariable(
"LINK_ITEM",$this->ctrl->getLinkTarget($this));
1534 elseif (
$row[
"child"] != $tree->getRootId())
1536 $this->tpl->setVariable(
"ITEM",
$row[
"title"]);
1537 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1541 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"repository"));
1542 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1545 $this->tpl->parseCurrentBlock();
1548 $this->tpl->setVariable(
"TXT_LOCATOR",$this->lng->txt(
"locator"));
1549 $this->tpl->parseCurrentBlock();
1557 if ($ilAccess->checkAccess(
"read",
"", $a_target))
1559 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=$a_target");
1564 if ($ilAccess->checkAccess(
"visible",
"", $a_target))
1566 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=".$a_target.
"&cmd=infoScreen");
1570 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1572 $_GET[
"cmd"] =
"frameset";
1573 $_GET[
"target"] =
"";
1574 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
1577 include(
"repository.php");
1583 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);