24 include_once
"./classes/class.ilObjectGUI.php";
25 include_once(
'./Modules/WebResource/classes/class.ilParameterAppender.php');
61 $this->ctrl->saveParameter($this,array(
"ref_id",
"cmdClass"));
63 $this->lng->loadLanguageModule(
'webr');
72 if(
$_GET[
"baseClass"] ==
'ilLinkResourceHandlerGUI')
75 $ilCtrl->saveParameter($this,
'view_mode');
79 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui" ||
86 $next_class = $this->ctrl->getNextClass($this);
87 $cmd = $this->ctrl->getCmd();
91 case "ilinfoscreengui":
96 $this->tabs_gui->setTabActive(
'meta_data');
97 include_once
'Services/MetaData/classes/class.ilMDEditorGUI.php';
98 $md_gui =&
new ilMDEditorGUI($this->object->getId(), 0, $this->
object->getType());
99 $md_gui->
addObserver($this->
object,
'MDUpdateListener',
'General');
100 $this->ctrl->forwardCommand($md_gui);
103 case 'ilpermissiongui':
104 $this->tabs_gui->setTabActive(
'perm_settings');
105 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
107 $ret =& $this->ctrl->forwardCommand($perm_gui);
110 case 'ilobjectcopygui':
111 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
113 $cp->setType(
'webr');
114 $this->ctrl->forwardCommand($cp);
132 include_once(
'Services/MetaData/classes/class.ilMDUtils.php');
147 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_create.html',
'Modules/WebResource');
149 $this->tpl->setVariable(
'LINK_FORM',$this->form->getHTML());
172 $this->link->setLinkResourceId($link_list->getId());
173 $link_id = $this->link->add();
178 $this->dynamic->setObjId($link_list->getId());
179 $this->dynamic->add($link_id);
184 $link_list->getRefId().
"&cmd=view");
189 $this->form->setValuesByPost();
191 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_create.html',
'Modules/WebResource');
192 $this->tpl->setVariable(
'LINK_FORM',$this->form->getHTML());
198 if (
$_POST[
"Fobject"][
"title"] ==
"")
214 $this->tabs_gui->setTabActive(
'settings');
217 $this->tpl->setContent($this->form->getHTML());
227 $this->tabs_gui->setTabActive(
'settings');
230 if($this->form->checkInput())
232 $this->
object->setTitle($this->form->getInput(
'tit'));
233 $this->
object->setDescription($this->form->getInput(
'des'));
234 $this->
object->update();
236 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
242 $this->ctrl->redirect($this,
'settings');
245 $this->form->setValuesByPost();
247 $this->tpl->setContent($this->form->getHTML());
257 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
259 $this->form->setFormAction($this->ctrl->getFormAction($this,
'saveSettings'));
260 $this->form->setTitle($this->lng->txt(
'webr_edit_settings'));
263 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_list_title'),
'tit');
264 $tit->
setValue($this->object->getTitle());
265 $tit->setRequired(
true);
267 $tit->setMaxLength(127);
268 $this->form->addItem($tit);
272 $des->
setValue($this->object->getDescription());
275 $this->form->addItem($des);
278 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
279 include_once
'./Services/Container/classes/class.ilContainer.php';
283 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
287 $this->lng->txt(
'webr_sort_title'),
290 $sor->addOption($opt);
293 $this->lng->txt(
'webr_sort_manual'),
296 $sor->addOption($opm);
297 $this->form->addItem($sor);
299 $this->form->addCommandButton(
'saveSettings', $this->lng->txt(
'save'));
300 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
315 if(!(
int)
$_GET[
'link_id'])
318 $ilCtrl->redirect($this,
'view');
323 $this->tpl->setContent($this->form->getHTML());
335 if($this->
checkLinkInput(self::LINK_MOD_EDIT,$this->object->getId(),(int) $_REQUEST[
'link_id']))
337 $this->link->setLinkId((
int) $_REQUEST[
'link_id']);
338 $this->link->update();
341 $this->dynamic->add((
int) $_REQUEST[
'link_id']);
346 $this->
object->setTitle($this->form->getInput(
'tit'));
347 $this->
object->setDescription($this->form->getInput(
'des'));
348 $this->
object->update();
352 $ilCtrl->redirect($this,
'view');
355 $this->form->setValuesByPost();
356 $this->tpl->setContent($this->form->getHTML());
369 $this->tpl->setContent($this->form->getHTML());
383 if($this->
checkLinkInput(self::LINK_MOD_ADD,$this->object->getId(),0))
388 $this->
object->setTitle($this->form->getInput(
'lti'));
389 $this->
object->setDescription($this->form->getInput(
'lde'));
390 $this->
object->update();
394 $link_id = $this->link->add();
399 $this->dynamic->add($link_id);
402 $ilCtrl->redirect($this,
'view');
406 $this->form->setValuesByPost();
409 $this->tpl->setContent($this->form->getHTML());
422 $this->ctrl->setParameter($this,
'link_id',(
int)
$_GET[
'link_id']);
424 if(!isset($_GET[
'param_id']))
427 $ilCtrl->redirect($this,
'view');
430 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
432 $param->delete((
int) $_GET[
'param_id']);
435 $ilCtrl->redirect($this,
'editLink');
444 if(!isset(
$_GET[
'param_id']))
447 $ilCtrl->redirect($this,
'view');
450 include_once
'./Modules/WebResource/classes/class.ilParameterAppender.php';
455 $ilCtrl->redirect($this,
'view');
471 if(!is_array(
$_POST[
'ids']))
474 $ilCtrl->redirect($this,
'view');
479 foreach(
$_POST[
'ids'] as $link_id)
483 if(!strlen(
$data[
'tit']))
485 $invalid[] = $link_id;
488 if(!strlen(
$data[
'tar']))
490 $invalid[] = $link_id;
495 $invalid[] = $link_id;
500 $invalid[] = $link_id;
508 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
510 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
512 $table->setInvalidLinks($invalid);
513 $table->parseSelectedLinks(
$_POST[
'ids']);
514 $table->updateFromPost();
515 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
519 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
523 foreach(
$_POST[
'ids'] as $link_id)
527 $links->setLinkId($link_id);
531 $links->setActiveStatus((
int)
$data[
'act']);
532 $links->setDisableCheckStatus((
int) $data[
'che']);
533 $links->setValidStatus((
int) $data[
'vali']);
536 if(strlen($data[
'nam']) and $data[
'val'])
540 $param->setValue((
int) $data[
'val']);
548 $this->
object->update();
555 $ilCtrl->redirect($this,
'view');
565 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
568 $values = $link->
getItem($a_link_id);
574 $this->form->setValuesByArray(
576 'tit' => $values[
'title'],
577 'tar' => $values[
'target'],
578 'des' => $values[
'description'],
579 'act' => (
int) $values[
'active'],
580 'che' => (
int) $values[
'disable_check'],
581 'vali' => (
int) $values[
'valid']
596 $valid = $this->form->checkInput();
598 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
600 $this->link->setTarget($this->form->getInput(
'tar'));
601 $this->link->setTitle($this->form->getInput(
'tit'));
602 $this->link->setDescription($this->form->getInput(
'des'));
603 $this->link->setDisableCheckStatus($this->form->getInput(
'che'));
604 $this->link->setActiveStatus($this->form->getInput(
'act'));
606 if($a_mode == self::LINK_MOD_EDIT)
608 $this->link->setValidStatus($this->form->getInput(
'val'));
617 $this->dynamic->setName($this->form->getInput(
'nam'));
618 $this->dynamic->setValue($this->form->getInput(
'val'));
619 if(!$this->dynamic->validate())
621 switch($this->dynamic->getErrorCode())
624 $this->form->getItemByPostVar(
'nam')->setAlert($this->lng->txt(
'links_no_name_given'));
628 $this->form->getItemByPostVar(
'val')->setAlert($this->lng->txt(
'links_no_value_given'));
635 $this->dynamic = null;
648 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
653 case self::LINK_MOD_CREATE:
655 $this->ctrl->setParameter($this,
'new_type',
'webr');
656 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
657 $this->form->setTableWidth(
'60%');
660 $this->form->addCommandButton(
'save', $this->lng->txt(
'webr_add'));
661 $this->form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
664 case self::LINK_MOD_ADD:
666 $this->form->setTitle($this->lng->txt(
'webr_new_link'));
669 $this->form->addCommandButton(
'saveAddLink', $this->lng->txt(
'webr_add'));
670 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
673 case self::LINK_MOD_EDIT:
675 $this->ctrl->setParameter($this,
'link_id',(
int) $_REQUEST[
'link_id']);
676 $this->form->setTitle($this->lng->txt(
'webr_edit'));
679 $this->form->addCommandButton(
'updateLink', $this->lng->txt(
'save'));
680 $this->form->addCommandButton(
'view', $this->lng->txt(
'cancel'));
685 $this->form->setFormAction($this->ctrl->getFormAction($this));
692 $this->form->setTitle($this->lng->txt(
'webr_edit_list'));
696 $title->setRequired(
true);
698 $title->setMaxLength(127);
699 $this->form->addItem(
$title);
705 $this->form->addItem(
$desc);
709 $sect->setTitle($this->lng->txt(
'webr_add'));
710 $this->form->addItem($sect);
714 $tar =
new ilTextInputGUI($this->lng->txt(
'webr_link_target'),
'tar');
716 $tar->setRequired(
true);
718 $tar->setMaxLength(500);
719 $this->form->addItem($tar);
722 $tit =
new ilTextInputGUI($this->lng->txt(
'webr_link_title'),
'tit');
725 $tit->setMaxLength(127);
726 $this->form->addItem($tit);
732 $this->form->addItem($des);
738 $this->form->addItem($act);
743 $this->form->addItem($che);
746 if($a_mode == self::LINK_MOD_EDIT)
749 $this->form->addItem($val);
755 $dyn->
setInfo($this->lng->txt(
'links_dynamic_info'));
763 foreach($links as $id => $link)
767 $ptpl =
new ilTemplate(
'tpl.link_dyn_param_edit.html',
true,
true,
'Modules/WebResource');
769 $this->ctrl->setParameter($this,
'param_id',$id);
770 $ptpl->setVariable(
'LINK_DEL',$this->ctrl->getLinkTarget($this,
'deleteParameterForm'));
771 $ptpl->setVariable(
'LINK_TXT',$this->lng->txt(
'delete'));
772 $p->setHtml($ptpl->get());
773 $dyn->addSubItem($p);
780 if($a_mode == self::LINK_MOD_EDIT)
782 #$new = new ilCustomInputGUI($this->lng->txt('links_add_param'),'');
783 #$dyn->addSubItem($new);
789 $nam->setMaxLength(128);
790 $dyn->addSubItem($nam);
796 $dyn->addSubItem($val);
798 $this->form->addItem($dyn);
809 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
821 $_REQUEST[
'view_mode'] =
$_GET[
'view_mode'] = (int)
$_GET[
'switch_mode'];
846 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
853 switch((
int) $_REQUEST[
'view_mode'])
855 case self::VIEW_MODE_MANAGE:
859 case self::VIEW_MODE_SORT:
880 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_manage.html',
'Modules/WebResource');
883 include_once
'./Modules/WebResource/classes/class.ilWebResourceEditableLinkTableGUI.php';
887 $this->tpl->setVariable(
'TABLE_LINKS',$table->getHTML());
899 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
903 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
905 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
917 include_once
'./Modules/WebResource/classes/class.ilWebResourceLinkTableGUI.php';
921 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.webr_view.html',
'Modules/WebResource');
923 $this->tpl->setVariable(
'LINK_TABLE',$table->getHTML());
934 include_once
'./Services/Container/classes/class.ilContainerSorting.php';
936 $sort->savePost((array)
$_POST[
'position']);
952 if(!$ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
957 include_once
'./Services/UIComponent/Toolbar/classes/class.ilToolbarGUI.php';
959 $tool->setFormAction($this->ctrl->getFormAction($this));
961 $this->lng->txt(
'webr_add'),
962 $this->ctrl->getLinkTarget($this,
'addLink')
965 $this->tpl->setVariable($a_tpl_var,$tool->getHTML());
978 $link_ids = is_array(
$_POST[
'link_ids']) ?
980 array(
$_GET[
'link_id']);
989 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
992 include_once
'Services/Utilities/classes/class.ilConfirmationGUI.php';
994 $confirm->setFormAction($this->ctrl->getFormAction($this,
'view'));
995 $confirm->setHeaderText($this->lng->txt(
'webr_sure_delete_items'));
996 $confirm->setConfirm($this->lng->txt(
'delete'),
'deleteLinks');
997 $confirm->setCancel($this->lng->txt(
'cancel'),
'view');
999 foreach($link_ids as $link_id)
1001 $link = $links->getItem($link_id);
1002 $confirm->addItem(
'link_ids[]', $link_id,$link[
'title']);
1004 $this->tpl->setContent($confirm->getHTML());
1017 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1020 foreach(
$_POST[
'link_ids'] as $link_id)
1022 $links->
delete($link_id);
1025 $ilCtrl->redirect($this,
'view');
1038 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1041 if(!
$_GET[
'link_id'])
1044 $ilCtrl->redirect($this,
'view');
1047 $links->setLinkId((
int)
$_GET[
'link_id']);
1048 $links->updateActive(
false);
1051 $ilCtrl->redirect($this,
'view');
1062 $this->ctrl->setCmd(
"showSummary");
1063 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1075 $this->tabs_gui->setTabActive(
'info_short');
1077 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1080 $info->enablePrivateNotes();
1083 $info->addMetaDataSections($this->object->getId(),0, $this->
object->getType());
1086 $this->ctrl->forwardCommand($info);
1093 $this->tabs_gui->setTabActive(
'history');
1095 include_once(
"classes/class.ilHistoryGUI.php");
1101 "cmdClass" =>
$_GET[
"cmdClass"],
1102 "cmdNode" =>
$_GET[
"cmdNode"]));
1104 $this->tpl->setVariable(
"ADM_CONTENT", $hist_html);
1116 $this->tabs_gui->setTabActive(
'link_check');
1119 $this->
object->initLinkResourceItemsObject();
1121 $invalid_links = $this->link_checker_obj->getInvalidLinksFromDB();
1124 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.link_check.html",
'Modules/WebResource');
1126 if($last_access = $this->link_checker_obj->getLastCheckTimestamp())
1128 $this->tpl->setCurrentBlock(
"LAST_MODIFIED");
1129 $this->tpl->setVariable(
"AS_OF",$this->lng->txt(
'last_change').
": ");
1131 $this->tpl->parseCurrentBlock();
1135 $this->tpl->setVariable(
"F_ACTION",$this->ctrl->getFormAction($this,
'linkChecker'));
1138 $this->tpl->setVariable(
"ALT_IMG",$this->lng->txt(
'obj_webr'));
1139 $this->tpl->setVariable(
"TITLE",$this->object->getTitle().
' ('.$this->lng->txt(
'link_check').
')');
1140 $this->tpl->setVariable(
"PAGE_TITLE",$this->lng->txt(
'title'));
1141 $this->tpl->setVariable(
"URL",$this->lng->txt(
'url'));
1142 $this->tpl->setVariable(
"OPTIONS",$this->lng->txt(
'edit'));
1144 if(!count($invalid_links))
1146 $this->tpl->setCurrentBlock(
"no_invalid");
1147 $this->tpl->setVariable(
"TXT_NO_INVALID",$this->lng->txt(
'no_invalid_links'));
1148 $this->tpl->parseCurrentBlock();
1153 foreach($invalid_links as $invalid)
1155 $this->
object->items_obj->readItem($invalid[
'page_id']);
1157 $this->tpl->setCurrentBlock(
"invalid_row");
1159 $this->tpl->setVariable(
"ROW_PAGE_TITLE",$this->object->items_obj->getTitle());
1160 $this->tpl->setVariable(
"ROW_URL",$invalid[
'url']);
1164 $this->ctrl->setParameter($this,
'link_id',$invalid[
'page_id']);
1165 $this->tpl->setVariable(
"ROW_EDIT_LINK",$this->ctrl->getLinkTarget($this,
'editLink'));
1167 $this->tpl->setVariable(
"ROW_ALT_IMG",$this->lng->txt(
'edit'));
1168 $this->tpl->parseCurrentBlock();
1171 if((
bool) $ilias->getSetting(
'cron_web_resource_check'))
1173 include_once
'./classes/class.ilLinkCheckNotify.php';
1176 $this->tpl->setCurrentBlock(
"MESSAGE_BLOCK");
1177 $this->tpl->setVariable(
"INFO_MESSAGE",$this->lng->txt(
'link_check_message_a'));
1180 'link_check_message',
1182 $this->tpl->setVariable(
"INFO_MESSAGE_LONG",$this->lng->txt(
'link_check_message_b'));
1183 $this->tpl->parseCurrentBlock();
1186 $this->tpl->setCurrentBlock(
"CRON_ENABLED");
1188 $this->tpl->setVariable(
"BTN_SUBMIT_LINK_CHECK",$this->lng->txt(
'save'));
1189 $this->tpl->parseCurrentBlock();
1191 $this->tpl->setVariable(
"BTN_REFRESH",$this->lng->txt(
'refresh'));
1198 global
$ilDB,$ilUser;
1200 include_once
'./classes/class.ilLinkCheckNotify.php';
1203 $link_check_notify->setUserId($ilUser->getId());
1204 $link_check_notify->setObjId($this->object->getId());
1206 if(
$_POST[
'link_check_message'])
1209 $link_check_notify->addNotifier();
1214 $link_check_notify->deleteNotifier();
1227 if(!$this->link_checker_obj->checkPear())
1236 $this->
object->initLinkResourceItemsObject();
1239 $this->
object->items_obj->updateValidByCheck();
1241 foreach($this->link_checker_obj->checkWebResourceLinks() as $invalid)
1243 $this->
object->items_obj->readItem($invalid[
'page_id']);
1244 $this->
object->items_obj->setActiveStatus(
false);
1245 $this->
object->items_obj->setValidStatus(
false);
1246 $this->
object->items_obj->update(
false);
1249 $this->
object->items_obj->updateLastCheck();
1261 include_once
'./classes/class.ilLinkChecker.php';
1264 $this->link_checker_obj->setObjId($this->object->getId());
1280 switch($a_active_tab)
1283 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1285 $this->lng->loadLanguageModule(
'cntr');
1287 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_VIEW);
1288 $this->tabs_gui->addSubTabTarget(
1290 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1292 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_MANAGE);
1293 $this->tabs_gui->addSubTabTarget(
1295 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1297 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1298 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
1299 include_once
'./Services/Container/classes/class.ilContainer.php';
1303 $this->ctrl->setParameter($this,
'switch_mode',self::VIEW_MODE_SORT);
1304 $this->tabs_gui->addSubTabTarget(
1306 $this->ctrl->getLinkTarget($this,
'switchViewMode')
1310 $ilCtrl->clearParameters($this);
1311 $this->tabs_gui->setSubTabActive($a_active_subtab);
1315 $this->tabs_gui->setTabActive(
'content');
1326 global $rbacreview,$ilAccess;
1328 if ($ilAccess->checkAccess(
'read',
'',$this->object->getRefId()))
1330 $tabs_gui->addTarget(
1332 $this->ctrl->getLinkTarget($this,
"view"), array(
"",
"view")
1336 if ($ilAccess->checkAccess(
'visible',
'',$this->ref_id))
1338 $tabs_gui->addTarget(
1340 $this->ctrl->getLinkTarget($this,
'infoScreen')
1344 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()) and !$this->
getCreationMode())
1346 include_once
'./Modules/WebResource/classes/class.ilLinkResourceItems.php';
1349 $tabs_gui->addTarget(
1351 $this->ctrl->getLinkTarget($this,
'settings')
1357 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1359 $tabs_gui->addTarget(
"meta_data",
1360 $this->ctrl->getLinkTargetByClass(
'ilmdeditorgui',
'listSection'),
1361 "",
'ilmdeditorgui');
1364 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1366 $tabs_gui->addTarget(
"history",
1367 $this->ctrl->getLinkTarget($this,
"history"),
"history", get_class($this));
1370 if ($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
1373 if(@include_once(
'HTTP/Request.php'))
1375 $tabs_gui->addTarget(
"link_check",
1376 $this->ctrl->getLinkTarget($this,
"linkChecker"),
1377 array(
"linkChecker",
"refreshLinkCheck"), get_class($this));
1381 if ($ilAccess->checkAccess(
'edit_permission',
'',$this->object->getRefId()))
1383 $tabs_gui->addTarget(
"perm_settings",
1384 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
1392 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
1393 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
1413 include_once
'./classes/class.ilTabsGUI.php';
1415 $this->tpl->setCurrentBlock(
"header_image");
1417 $this->tpl->parseCurrentBlock();
1418 $this->tpl->setVariable(
"HEADER",$this->object->getTitle());
1419 $this->tpl->setVariable(
"H_DESCRIPTION",$this->object->getDescription());
1421 #$tabs_gui =& new ilTabsGUI();
1422 $this->
getTabs($this->tabs_gui);
1425 #$this->tpl->setVariable("TABS", $tabs_gui->getHTML());
1431 global $ilias_locator,
$lng;
1433 $this->tpl->addBlockFile(
"LOCATOR",
"locator",
"tpl.locator.html",
"Services/Locator");
1440 foreach ($tree->getPathFull($this->object->getRefId()) as
$key =>
$row)
1450 $this->tpl->touchBlock(
'locator_separator_prefix');
1453 if (
$row[
"child"] > 0)
1455 $this->tpl->setCurrentBlock(
"locator_img");
1456 $this->tpl->setVariable(
"IMG_SRC",
1458 $this->tpl->setVariable(
"IMG_ALT",
1459 $lng->txt(
"obj_".$type));
1460 $this->tpl->parseCurrentBlock();
1463 $this->tpl->setCurrentBlock(
"locator_item");
1465 if(
$row[
"type"] ==
'webr')
1467 $this->tpl->setVariable(
"ITEM",$this->object->getTitle());
1468 $this->tpl->setVariable(
"LINK_ITEM",$this->ctrl->getLinkTarget($this));
1472 $this->tpl->setVariable(
"ITEM",
$row[
"title"]);
1473 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1477 $this->tpl->setVariable(
"ITEM", $this->lng->txt(
"repository"));
1478 $this->tpl->setVariable(
"LINK_ITEM",
"./repository.php?ref_id=".
$row[
"child"]);
1481 $this->tpl->parseCurrentBlock();
1484 $this->tpl->setVariable(
"TXT_LOCATOR",$this->lng->txt(
"locator"));
1485 $this->tpl->parseCurrentBlock();
1493 if ($ilAccess->checkAccess(
"read",
"", $a_target))
1495 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=$a_target");
1500 if ($ilAccess->checkAccess(
"visible",
"", $a_target))
1502 ilUtil::redirect(
"ilias.php?baseClass=ilLinkResourceHandlerGUI&ref_id=".$a_target.
"&cmd=infoScreen");
1506 if ($ilAccess->checkAccess(
"read",
"", ROOT_FOLDER_ID))
1508 $_GET[
"cmd"] =
"frameset";
1509 $_GET[
"target"] =
"";
1510 $_GET[
"ref_id"] = ROOT_FOLDER_ID;
1513 include(
"repository.php");
1519 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);