41 require_once
"./Services/Container/classes/class.ilContainerGUI.php";
51 function ilObjFolderGUI($a_data, $a_id = 0, $a_call_by_reference =
true, $a_prepare_output =
false)
54 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output,
false);
67 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
73 $this->tabs_gui->setTabActive(
'view_content');
86 $ilTabs->activateTab(
"view_content");
95 $next_class = $this->ctrl->getNextClass($this);
96 $cmd = $this->ctrl->getCmd();
100 case 'ilpermissiongui':
102 $this->tabs_gui->setTabActive(
'perm_settings');
103 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
105 $ret =& $this->ctrl->forwardCommand($perm_gui);
108 case 'ilcoursecontentgui':
110 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
112 $this->ctrl->forwardCommand($course_content_obj);
115 case "illearningprogressgui":
117 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
120 $this->object->getRefId(),
121 $_GET[
'user_id'] ?
$_GET[
'user_id'] : $ilUser->getId());
122 $this->ctrl->forwardCommand($new_gui);
123 $this->tabs_gui->setTabActive(
'learning_progress');
127 case "ilpageobjectgui":
133 $this->tpl->setContent(
$ret);
137 case 'ilinfoscreengui':
142 case 'ilobjectcopygui':
145 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
147 $cp->setType(
'fold');
148 $this->ctrl->forwardCommand($cp);
151 case "ilobjstylesheetgui":
158 $this->tabs_gui->setTabActive(
'export');
159 include_once
'./Services/Export/classes/class.ilExportGUI.php';
161 $exp->addFormat(
'xml');
162 $this->ctrl->forwardCommand($exp);
165 case "ilcommonactiondispatchergui":
166 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
168 $this->ctrl->forwardCommand($gui);
171 case 'ildidactictemplategui':
172 $this->ctrl->setReturn($this,
'edit');
173 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php';
175 $this->ctrl->forwardCommand($did);
204 $this->folder_tree =& $a_tree;
215 if(parent::importFileObject())
218 $this->ctrl->returnToParent($this);
234 $sde->setTitle($this->lng->txt(
'sort_inherit_prefix').
' ('.
236 $sde->setInfo($this->lng->txt(
'sorting_info_inherit'));
237 $sog->addOption($sde);
241 $sma->setTitle($this->lng->txt(
'sorting_title_header'));
242 $sma->setInfo($this->lng->txt(
'sorting_info_title'));
243 $sog->addOption($sma);
247 $sti->setTitle($this->lng->txt(
'sorting_manual_header'));
248 $sti->setInfo($this->lng->txt(
'sorting_info_manual'));
249 $sog->addOption($sti);
258 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
266 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
280 $this->ctrl->setCmd(
"showSummary");
281 $this->ctrl->setCmdClass(
"ilinfoscreengui");
287 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
294 $this->ctrl->setParameter($this,
"ref_id", $a_new_object->
getRefId());
305 $this->ctrl->setCmd(
"showSummary");
306 $this->ctrl->setCmdClass(
"ilinfoscreengui");
317 if (!$ilAccess->checkAccess(
"visible",
"", $this->ref_id))
319 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
322 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
325 $info->enablePrivateNotes();
327 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
333 $info->enableNewsEditing(
false);
334 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
337 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
339 if ($enable_internal_rss)
341 $info->setBlockProperty(
"news",
"settings",
true);
342 $info->setBlockProperty(
"news",
"public_notifications_option",
true);
348 $info->addMetaDataSections($this->object->getId(),0, $this->
object->getType());
351 $this->ctrl->forwardCommand($info);
362 $this->ctrl->setParameter($this,
"ref_id",$this->ref_id);
364 $ilHelp->setScreenIdComponent(
"fold");
366 $tabs_gui->setTabActive(
"");
367 if ($rbacsystem->checkAccess(
'read',$this->ref_id))
369 $tabs_gui->addTab(
"view_content", $lng->txt(
"content"),
370 $this->ctrl->getLinkTarget($this,
""));
373 $force_active = ($this->ctrl->getNextClass() ==
"ilinfoscreengui"
374 || strtolower(
$_GET[
"cmdClass"]) ==
"ilnotegui")
377 $tabs_gui->addTarget(
"info_short",
378 $this->ctrl->getLinkTargetByClass(
379 array(
"ilobjfoldergui",
"ilinfoscreengui"),
"showSummary"),
380 array(
"showSummary",
"",
"infoScreen"),
381 "",
"", $force_active);
385 if ($rbacsystem->checkAccess(
'write',$this->ref_id))
387 $tabs_gui->addTarget(
"settings",
388 $this->ctrl->getLinkTarget($this,
"edit"),
"edit",
"",
"", ($ilCtrl->getCmd() ==
"edit"));
392 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
395 $tabs_gui->addTarget(
'learning_progress',
396 $this->ctrl->getLinkTargetByClass(array(
'ilobjfoldergui',
'illearningprogressgui'),
''),
398 array(
'illplistofobjectsgui',
'illplistofsettingsgui',
'illearningprogressgui',
'illplistofprogressgui'));
401 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
403 $tabs_gui->addTarget(
405 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
''),
412 if ($rbacsystem->checkAccess(
'edit_permission',$this->ref_id))
414 $tabs_gui->addTarget(
"perm_settings",
415 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
419 if (
$_GET[
"baseClass"] ==
"ilRepositoryGUI" and !empty(
$_SESSION[
'il_rep_clipboard']))
421 $tabs_gui->addTarget(
"clipboard",
422 $this->ctrl->getLinkTarget($this,
"clipboard"),
"clipboard", get_class($this));
434 if ($ilAccess->checkAccess(
"read",
"", $a_target))
438 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
445 if (!$ilAccess->checkAccess(
"read",
"", $this->ref_id))
447 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
449 $filename = $this->
object->downloadFolder();
461 if ($course_ref_id = $tree->checkForParentType($this->object->getRefId(),
'crs'))
463 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
464 include_once(
"./Modules/Course/classes/class.ilObjCourseGUI.php");
468 $this->object->getRefId());
476 if(!$crs_ref = $tree->checkForParentType($this->ref_id,
'crs'))
480 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
488 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
490 $this->ctrl->setCmdClass(get_class($course_content_obj));
491 $this->ctrl->setCmd(
'editUserTimings');
492 $this->ctrl->forwardCommand($course_content_obj);