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 if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
81 $ilErr->raiseError($this->lng->txt(
'permission_denied'),$ilErr->WARNING);
84 $ilTabs->activateTab(
'id_meta_data');
85 include_once
'Services/MetaData/classes/class.ilMDEditorGUI.php';
86 $md_gui =&
new ilMDEditorGUI($this->object->getId(), 0, $this->
object->getType());
87 $md_gui->
addObserver($this->
object,
'MDUpdateListener',
'General');
88 $this->ctrl->forwardCommand($md_gui);
91 case 'ilpermissiongui':
92 $ilTabs->activateTab(
'id_permissions');
93 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
95 $ret =& $this->ctrl->forwardCommand($perm_gui);
98 case 'ilobjectcopygui':
99 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
101 $cp->setType(
'webr');
102 $this->ctrl->forwardCommand($cp);
106 $this->tabs_gui->setTabActive(
'export');
107 include_once
'./Services/Export/classes/class.ilExportGUI.php';
109 $exp->addFormat(
'xml');
110 $this->ctrl->forwardCommand($exp);
128 include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
143 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_create.html',
'Modules/WebResource');
145 $this->tpl->setVariable(
'LINK_FORM',$this->form->getHTML());
150 $this->tpl->setVariable(
"IMPORT_FORM", $this->form->getHTML());
162 $lng->loadLanguageModule(
"webr");
164 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
166 $this->form->setTableWidth(
'600px');
167 $this->form->setTarget(
"_top");
170 include_once(
"./Services/Form/classes/class.ilFileInputGUI.php");
173 $fi->setRequired(
true);
174 $this->form->addItem($fi);
176 $this->form->addCommandButton(
"importFile", $lng->txt(
"import"));
177 $this->form->addCommandButton(
"cancel", $lng->txt(
"cancel"));
178 $this->form->setTitle($lng->txt($a_new_type.
"_import"));
180 $this->form->setFormAction($ilCtrl->getFormAction($this));
195 if (!$rbacsystem->checkAccess(
"create", $this->object->getRefId(), $new_type))
197 $ilErr->raiseError($this->lng->txt(
'no_create_permission'),$ilErr->MESSAGE);
199 $this->ctrl->setParameter($this,
"new_type", $new_type);
201 if ($this->form->checkInput())
203 include_once
'./Services/Export/classes/class.ilImport.php';
205 $new_id = $imp->importObject(null, $_FILES[
"importfile"][
"tmp_name"],$_FILES[
"importfile"][
"name"], $new_type);
211 $newObj->createReference();
212 $newObj->putInTree($_GET[
"ref_id"]);
213 $newObj->setPermissions($_GET[
"ref_id"]);
215 $this->ctrl->returnToParent($this);
220 $this->form->setValuesByPost();
221 $tpl->setContent($this->form->getHtml());
242 $this->link->setLinkResourceId($link_list->getId());
243 $link_id = $this->link->add();
248 $this->dynamic->setObjId($link_list->getId());
249 $this->dynamic->add($link_id);
254 $link_list->getRefId().
"&cmd=view");
259 $this->form->setValuesByPost();
261 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_create.html',
'Modules/WebResource');
262 $this->tpl->setVariable(
'LINK_FORM',$this->form->getHTML());
268 if (
$_POST[
"Fobject"][
"title"] ==
"")
286 $ilTabs->activateTab(
'id_settings');
289 $this->tpl->setContent($this->form->getHTML());
301 $ilTabs->activateTab(
'id_settings');
304 if($this->form->checkInput())
306 $this->
object->setTitle($this->form->getInput(
'tit'));
307 $this->
object->setDescription($this->form->getInput(
'des'));
308 $this->
object->update();
310 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
316 $this->ctrl->redirect($this,
'settings');
319 $this->form->setValuesByPost();
321 $this->tpl->setContent($this->form->getHTML());
331 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
333 $this->form->setFormAction($this->ctrl->getFormAction($this,
'saveSettings'));
334 $this->form->setTitle($this->lng->txt(
'webr_edit_settings'));
337 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'tit');
338 $tit->
setValue($this->object->getTitle());
339 $tit->setRequired(
true);
341 $tit->setMaxLength(127);
342 $this->form->addItem($tit);
346 $des->
setValue($this->object->getDescription());
349 $this->form->addItem($des);
352 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
353 include_once
'./Services/Container/classes/class.ilContainer.php';
357 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
361 $this->lng->txt(
'webr_sort_title'),
364 $sor->addOption($opt);
367 $this->lng->txt(
'webr_sort_manual'),
370 $sor->addOption($opm);
371 $this->form->addItem($sor);
373 $this->form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
374 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
389 if(!(
int)
$_GET[
'link_id'])
392 $ilCtrl->redirect($this,
'view');
397 $this->tpl->setContent($this->form->getHTML());
411 $this->link->setLinkId((
int)
$_REQUEST[
'link_id']);
412 $this->link->update();
415 $this->dynamic->add((
int) $_REQUEST[
'link_id']);
420 $this->
object->setTitle($this->form->getInput(
'tit'));
421 $this->
object->setDescription($this->form->getInput(
'des'));
422 $this->
object->update();
426 $ilCtrl->redirect($this,
'view');
429 $this->form->setValuesByPost();
430 $this->tpl->setContent($this->form->getHTML());
443 $this->tpl->setContent($this->form->getHTML());
457 if($this->
checkLinkInput(self::LINK_MOD_ADD,$this->object->getId(),0))
462 $this->
object->setTitle($this->form->getInput(
'lti'));
463 $this->
object->setDescription($this->form->getInput(
'lde'));
464 $this->
object->update();
468 $link_id = $this->link->add();
473 $this->dynamic->add($link_id);
476 $ilCtrl->redirect($this,
'view');
480 $this->form->setValuesByPost();
483 $this->tpl->setContent($this->form->getHTML());
496 $this->ctrl->setParameter($this,
'link_id',(
int)
$_GET[
'link_id']);
498 if(!isset($_GET[
'param_id']))
501 $ilCtrl->redirect($this,
'view');
504 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
506 $param->
delete((
int) $_GET[
'param_id']);
509 $ilCtrl->redirect($this,
'editLink');
518 if(!isset(
$_GET[
'param_id']))
521 $ilCtrl->redirect($this,
'view');
524 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
529 $ilCtrl->redirect($this,
'view');
545 if(!is_array(
$_POST[
'ids']))
548 $ilCtrl->redirect($this,
'view');
553 foreach(
$_POST[
'ids'] as $link_id)
557 if(!strlen(
$data[
'tit']))
559 $invalid[] = $link_id;
562 if(!strlen(
$data[
'tar']))
564 $invalid[] = $link_id;
569 $invalid[] = $link_id;
574 $invalid[] = $link_id;
582 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
584 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
586 $table->setInvalidLinks($invalid);
587 $table->parseSelectedLinks(
$_POST[
'ids']);
588 $table->updateFromPost();
589 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
593 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
597 foreach(
$_POST[
'ids'] as $link_id)
601 $links->setLinkId($link_id);
605 $links->setActiveStatus((
int)
$data[
'act']);
606 $links->setDisableCheckStatus((
int) $data[
'che']);
607 $links->setValidStatus((
int) $data[
'vali']);
610 if(strlen($data[
'nam']) and $data[
'val'])
614 $param->setValue((
int) $data[
'val']);
615 $param->add($link_id);
622 $this->
object->update();
629 $ilCtrl->redirect($this,
'view');
639 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
642 $values = $link->
getItem($a_link_id);
648 $this->form->setValuesByArray(
650 'tit' => $values[
'title'],
651 'tar' => $values[
'target'],
652 'des' => $values[
'description'],
653 'act' => (
int) $values[
'active'],
654 'che' => (
int) $values[
'disable_check'],
655 'vali' => (
int) $values[
'valid']
670 $valid = $this->form->checkInput();
672 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
674 $this->link->setTarget($this->form->getInput(
'tar'));
675 $this->link->setTitle($this->form->getInput(
'tit'));
676 $this->link->setDescription($this->form->getInput(
'des'));
677 $this->link->setDisableCheckStatus($this->form->getInput(
'che'));
678 $this->link->setActiveStatus($this->form->getInput(
'act'));
680 if($a_mode == self::LINK_MOD_EDIT)
682 $this->link->setValidStatus($this->form->getInput(
'val'));
691 $this->dynamic->setName($this->form->getInput(
'nam'));
692 $this->dynamic->setValue($this->form->getInput(
'val'));
693 if(!$this->dynamic->validate())
695 switch($this->dynamic->getErrorCode())
698 $this->form->getItemByPostVar(
'nam')->setAlert($this->lng->txt(
'links_no_name_given'));
702 $this->form->getItemByPostVar(
'val')->setAlert($this->lng->txt(
'links_no_value_given'));
709 $this->dynamic = null;
724 $ilTabs->activateTab(
"id_content");
726 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
731 case self::LINK_MOD_CREATE:
733 $this->ctrl->setParameter($this,
'new_type',
'webr');
734 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
735 $this->form->setTableWidth(
'600px');
738 $this->form->addCommandButton(
'save', $this->lng->txt(
'webr_add'));
739 $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
742 case self::LINK_MOD_ADD:
744 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
747 $this->form->addCommandButton(
'saveAddLink', $this->lng->txt(
'webr_add'));
748 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
751 case self::LINK_MOD_EDIT:
753 $this->ctrl->setParameter($this,
'link_id',(
int)
$_REQUEST[
'link_id']);
754 $this->form->setTitle($this->lng->txt(
'webr_edit'));
757 $this->form->addCommandButton(
'updateLink', $this->lng->txt(
'save'));
758 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
763 $this->form->setFormAction($this->ctrl->getFormAction($this));
770 $this->form->setTitle($this->lng->txt(
'webr_edit_list'));
774 $title->setRequired(
true);
776 $title->setMaxLength(127);
777 $this->form->addItem(
$title);
783 $this->form->addItem($desc);
787 $sect->setTitle($this->lng->txt(
'webr_add'));
788 $this->form->addItem($sect);
792 $tar =
new ilTextInputGUI($this->lng->txt(
'webr_link_target'),
'tar');
794 $tar->setRequired(
true);
796 $tar->setMaxLength(500);
797 $this->form->addItem($tar);
800 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_link_title'),
'tit');
803 $tit->setMaxLength(127);
804 $this->form->addItem($tit);
810 $this->form->addItem($des);
816 $this->form->addItem($act);
821 $this->form->addItem($che);
824 if($a_mode == self::LINK_MOD_EDIT)
827 $this->form->addItem($val);
833 $dyn->
setInfo($this->lng->txt(
'links_dynamic_info'));
841 foreach($links as $id => $link)
845 $ptpl =
new ilTemplate(
'tpl.link_dyn_param_edit.html',
true,
true,
'Modules/WebResource');
847 $this->ctrl->setParameter($this,
'param_id',$id);
848 $ptpl->setVariable(
'LINK_DEL',$this->ctrl->getLinkTarget($this,
'deleteParameterForm'));
849 $ptpl->setVariable(
'LINK_TXT',$this->lng->txt(
'delete'));
850 $p->setHtml($ptpl->get());
851 $dyn->addSubItem($p);
858 if($a_mode == self::LINK_MOD_EDIT)
860 #$new = new ilCustomInputGUI($this->lng->txt('links_add_param'),'');
861 #$dyn->addSubItem($new);
867 $nam->setMaxLength(128);
868 $dyn->addSubItem($nam);
874 $dyn->addSubItem($val);
876 $this->form->addItem($dyn);
887 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
920 global $ilAccess,
$ilErr, $ilTabs;
922 $ilTabs->activateTab(
"id_content");
926 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
935 case self::VIEW_MODE_MANAGE:
939 case self::VIEW_MODE_SORT:
960 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
963 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
967 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
979 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
983 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
985 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
997 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
1001 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
1003 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
1014 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
1016 $sort->savePost((array)
$_POST[
'position']);
1032 if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1037 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
1039 $tool->setFormAction($this->ctrl->getFormAction($this));
1041 $this->lng->txt(
'webr_add'),
1042 $this->ctrl->getLinkTarget($this,
'addLink')
1045 $this->tpl->setVariable($a_tpl_var,$tool->getHTML());
1058 $link_ids = is_array(
$_POST[
'link_ids']) ?
1060 array(
$_GET[
'link_id']);
1069 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1072 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
1074 $confirm->setFormAction($this->ctrl->getFormAction($this,
'view'));
1075 $confirm->setHeaderText($this->lng->txt(
'webr_sure_delete_items'));
1076 $confirm->setConfirm($this->lng->txt(
'delete'),
'deleteLinks');
1077 $confirm->setCancel($this->lng->txt(
'cancel'),
'view');
1079 foreach($link_ids as $link_id)
1081 $link = $links->getItem($link_id);
1082 $confirm->addItem(
'link_ids[]', $link_id,$link[
'title']);
1084 $this->tpl->setContent($confirm->getHTML());
1097 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1100 foreach(
$_POST[
'link_ids'] as $link_id)
1102 $links->
delete($link_id);
1105 $ilCtrl->redirect($this,
'view');
1118 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1121 if(!
$_GET[
'link_id'])
1124 $ilCtrl->redirect($this,
'view');
1127 $links->setLinkId((
int)
$_GET[
'link_id']);
1128 $links->updateActive(
false);
1131 $ilCtrl->redirect($this,
'view');
1142 $this->ctrl->setCmd(
"showSummary");
1143 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1152 global $ilAccess, $ilTabs;
1155 $ilTabs->activateTab(
'id_info');
1157 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1160 $info->enablePrivateNotes();
1163 $info->addMetaDataSections($this->object->getId(),0, $this->
object->getType());
1166 $this->ctrl->forwardCommand($info);
1175 $ilTabs->activateTab(
'id_history');
1177 include_once(
"classes/class.ilHistoryGUI.php");
1183 "cmdClass" =>
$_GET[
"cmdClass"],
1184 "cmdNode" =>
$_GET[
"cmdNode"]));
1186 $this->tpl->setVariable(
"ADM_CONTENT", $hist_html);
1199 $this->
object->items_obj->readItem($row[
'page_id']);
1200 $row[
'title'] = $this->
object->items_obj->getTitle();
1202 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
1204 $actions->setSelectionHeaderClass(
'small');
1205 $actions->setItemLinkClass(
'xsmall');
1206 $actions->setListTitle($this->lng->txt(
'actions'));
1208 $this->ctrl->setParameter($this,
'link_id', $row[
'page_id']);
1210 $this->lng->txt(
'edit'),
1212 $this->ctrl->getLinkTarget($this,
'editLink')
1214 $this->ctrl->clearParameters($this);
1215 $row[
'action_html'] =
$actions->getHTML();
1229 $ilTabs->activateTab(
'id_link_check');
1232 $this->
object->initLinkResourceItemsObject();
1234 require_once
'Services/LinkChecker/classes/class.ilLinkCheckerTableGUI.php';
1238 if((
bool)$ilias->getSetting(
'cron_web_resource_check'))
1240 include_once
'classes/class.ilLinkCheckNotify.php';
1241 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
1243 $chb =
new ilCheckboxInputGUI($this->lng->txt(
'link_check_message_a'),
'link_check_message');
1246 $chb->setOptionTitle($this->lng->txt(
'link_check_message_b'));
1248 $toolbar->addInputItem($chb);
1249 $toolbar->addFormButton($this->lng->txt(
'save'),
'saveLinkCheck');
1250 $toolbar->setFormAction($this->ctrl->getLinkTarget($this,
'saveLinkCheck'));
1254 $tgui->setLinkChecker($this->link_checker_obj)
1255 ->setRowHandler($this)
1256 ->setRefreshButton($this->lng->txt(
'refresh'),
'refreshLinkCheck');
1258 return $tpl->setContent($tgui->prepareHTML()->getHTML().$toolbar->getHTML());
1263 global
$ilDB,$ilUser;
1265 include_once
'./classes/class.ilLinkCheckNotify.php';
1268 $link_check_notify->setUserId($ilUser->getId());
1269 $link_check_notify->setObjId($this->object->getId());
1271 if(
$_POST[
'link_check_message'])
1274 $link_check_notify->addNotifier();
1279 $link_check_notify->deleteNotifier();
1292 if(!$this->link_checker_obj->checkPear())
1301 $this->
object->initLinkResourceItemsObject();
1304 $this->
object->items_obj->updateValidByCheck();
1306 foreach($this->link_checker_obj->checkWebResourceLinks() as $invalid)
1308 $this->
object->items_obj->readItem($invalid[
'page_id']);
1309 $this->
object->items_obj->setActiveStatus(
false);
1310 $this->
object->items_obj->setValidStatus(
false);
1311 $this->
object->items_obj->update(
false);
1314 $this->
object->items_obj->updateLastCheck();
1326 include_once
'./classes/class.ilLinkChecker.php';
1329 $this->link_checker_obj->setObjId($this->object->getId());
1345 switch($a_active_tab)
1348 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1350 $this->lng->loadLanguageModule(
'cntr');
1352 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_VIEW);
1353 $ilTabs->addSubTab(
'id_content_view',
1355 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1357 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_MANAGE);
1358 $ilTabs->addSubTab(
'id_content_manage',
1359 $lng->txt(
'cntr_manage'),
1360 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1362 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1363 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
1364 include_once
'./Services/Container/classes/class.ilContainer.php';
1368 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_SORT);
1369 $ilTabs->addSubTab(
'id_content_ordering',
1370 $this->lng->txt(
'cntr_ordering'),
1371 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1375 $ilCtrl->clearParameters($this);
1376 $ilTabs->activateSubTab($a_active_subtab);
1380 $ilTabs->activateTab(
'id_content');
1390 global $ilAccess, $ilTabs,
$lng;
1392 if ($ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
1394 $ilTabs->addTab(
"id_content",
1395 $lng->txt(
"content"),
1396 $this->ctrl->getLinkTarget($this,
"view"));
1399 if ($ilAccess->checkAccess(
'visible',
'',$this->ref_id))
1401 $ilTabs->addTab(
"id_info",
1402 $lng->txt(
"info_short"),
1403 $this->ctrl->getLinkTarget($this,
"infoScreen"));
1406 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()) and !$this->
getCreationMode())
1408 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1411 $ilTabs->addTab(
"id_settings",
1412 $lng->txt(
"settings"),
1413 $this->ctrl->getLinkTarget($this,
"settings"));
1418 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1420 $ilTabs->addTab(
"id_history",
1421 $lng->txt(
"history"),
1422 $this->ctrl->getLinkTarget($this,
"history"));
1425 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1428 if(@include_once(
'HTTP/Request.php'))
1430 $ilTabs->addTab(
"id_link_check",
1431 $lng->txt(
"link_check"),
1432 $this->ctrl->getLinkTarget($this,
"linkChecker"));
1436 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1438 $ilTabs->addTab(
"id_meta_data",
1439 $lng->txt(
"meta_data"),
1440 $this->ctrl->getLinkTargetByClass(
'ilmdeditorgui',
'listSection'));
1443 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1447 $this->lng->txt(
'export'),
1448 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
'')
1452 if ($ilAccess->checkAccess(
'edit_permission',
'',$this->object->getRefId()))
1454 $ilTabs->addTab(
"id_permissions",
1455 $lng->txt(
"perm_settings"),
1456 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"));
1465 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
1466 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
1486 include_once
'./classes/class.ilTabsGUI.php';
1488 $this->tpl->setCurrentBlock(
"header_image");
1490 $this->tpl->parseCurrentBlock();
1491 $this->tpl->setVariable(
"HEADER",$this->object->getTitle());
1492 $this->tpl->setVariable(
"H_DESCRIPTION",$this->object->getDescription());
1500 global $ilias_locator,
$lng;
1502 $this->tpl->addBlockFile(
"LOCATOR",
"locator",
"tpl.locator.html",
"Services/Locator");
1509 foreach ($tree->getPathFull($this->object->getRefId()) as $key =>
$row)
1519 $this->tpl->touchBlock(
'locator_separator_prefix');
1522 if (
$row[
"child"] > 0)
1524 $this->tpl->setCurrentBlock(
"locator_img");
1525 $this->tpl->setVariable(
"IMG_SRC",
1527 $this->tpl->setVariable(
"IMG_ALT",
1528 $lng->txt(
"obj_".$type));
1529 $this->tpl->parseCurrentBlock();
1532 $this->tpl->setCurrentBlock(
"locator_item");
1534 if(
$row[
"type"] ==
'webr')
1536 $this->tpl->setVariable(
"ITEM",$this->object->getTitle());
1537 $this->tpl->setVariable(
"LINK_ITEM",$this->ctrl->getLinkTarget($this));
1539 elseif (
$row[
"child"] != $tree->getRootId())
1541 $this->tpl->setVariable(
"ITEM",
$row[
"title"]);
1542 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1546 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"repository"));
1547 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1550 $this->tpl->parseCurrentBlock();
1553 $this->tpl->setVariable(
"TXT_LOCATOR",$this->lng->txt(
"locator"));
1554 $this->tpl->parseCurrentBlock();
1562 if ($ilAccess->checkAccess(
"read",
"", $a_target))
1564 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=$a_target");
1569 if ($ilAccess->checkAccess(
"visible",
"", $a_target))
1571 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=".$a_target.
"&cmd=infoScreen");
1575 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1577 $_GET[
"cmd"] =
"frameset";
1578 $_GET[
"target"] =
"";
1579 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
1582 include(
"repository.php");
1588 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);