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);
65 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
71 $this->tabs_gui->setTabActive(
'view_content');
82 $ilTabs->activateTab(
"view_content");
91 $next_class = $this->ctrl->getNextClass($this);
92 $cmd = $this->ctrl->getCmd();
96 case "ilconditionhandlerinterface":
98 include_once
'./Services/AccessControl/classes/class.ilConditionHandlerInterface.php';
102 $this->ctrl->saveParameter($this,
'item_id',
$_GET[
'item_id']);
104 $this->tabs_gui->setTabActive(
'view_content');
107 $this->ctrl->forwardCommand($new_gui);
112 $this->ctrl->forwardCommand($new_gui);
116 case 'ilpermissiongui':
118 $this->tabs_gui->setTabActive(
'perm_settings');
119 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
121 $ret =& $this->ctrl->forwardCommand($perm_gui);
124 case 'ilcoursecontentgui':
126 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
128 $this->ctrl->forwardCommand($course_content_obj);
131 case 'ilcourseitemadministrationgui':
133 include_once
'Modules/Course/classes/class.ilCourseItemAdministrationGUI.php';
134 $this->tabs_gui->clearSubTabs();
135 $this->ctrl->setReturn($this,
'view');
137 $this->ctrl->forwardCommand($item_adm_gui);
140 case "illearningprogressgui":
142 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
145 $this->object->getRefId(),
146 $_GET[
'user_id'] ?
$_GET[
'user_id'] : $ilUser->getId());
147 $this->ctrl->forwardCommand($new_gui);
148 $this->tabs_gui->setTabActive(
'learning_progress');
152 case "ilpageobjectgui":
158 $this->tpl->setContent(
$ret);
162 case 'ilinfoscreengui':
167 case 'ilobjectcopygui':
170 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
172 $cp->setType(
'fold');
173 $this->ctrl->forwardCommand($cp);
176 case "ilobjstylesheetgui":
183 $this->tabs_gui->setTabActive(
'export');
184 include_once
'./Services/Export/classes/class.ilExportGUI.php';
186 $exp->addFormat(
'xml');
187 $this->ctrl->forwardCommand($exp);
190 case "ilcommonactiondispatchergui":
191 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
193 $this->ctrl->forwardCommand($gui);
196 case 'ildidactictemplategui':
197 $this->ctrl->setReturn($this,
'edit');
198 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php';
200 $this->ctrl->forwardCommand($did);
229 $this->folder_tree =& $a_tree;
240 if(parent::importFileObject())
243 $this->ctrl->returnToParent($this);
259 $sde->setTitle($this->lng->txt(
'sort_inherit_prefix').
' ('.
261 $sde->setInfo($this->lng->txt(
'sorting_info_inherit'));
262 $sog->addOption($sde);
266 $sma->setTitle($this->lng->txt(
'sorting_title_header'));
267 $sma->setInfo($this->lng->txt(
'sorting_info_title'));
268 $sog->addOption($sma);
272 $sti->setTitle($this->lng->txt(
'sorting_manual_header'));
273 $sti->setInfo($this->lng->txt(
'sorting_info_manual'));
274 $sog->addOption($sti);
283 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
291 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
305 $this->ctrl->setCmd(
"showSummary");
306 $this->ctrl->setCmdClass(
"ilinfoscreengui");
317 $this->ctrl->setCmd(
"showSummary");
318 $this->ctrl->setCmdClass(
"ilinfoscreengui");
329 if (!$ilAccess->checkAccess(
"visible",
"", $this->ref_id))
331 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
334 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
337 $info->enablePrivateNotes();
339 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
345 $info->enableNewsEditing(
false);
346 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
349 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
351 if ($enable_internal_rss)
353 $info->setBlockProperty(
"news",
"settings",
true);
354 $info->setBlockProperty(
"news",
"public_notifications_option",
true);
360 $info->addMetaDataSections($this->object->getId(),0, $this->
object->getType());
363 $this->ctrl->forwardCommand($info);
372 global $rbacsystem, $ilUser,
$lng,
$ilCtrl,$ilAccess;
374 $this->ctrl->setParameter($this,
"ref_id",$this->ref_id);
376 $tabs_gui->setTabActive(
"");
377 if ($rbacsystem->checkAccess(
'read',$this->ref_id))
379 $tabs_gui->addTab(
"view_content", $lng->txt(
"content"),
380 $this->ctrl->getLinkTarget($this,
""));
383 $force_active = ($this->ctrl->getNextClass() ==
"ilinfoscreengui"
384 || strtolower(
$_GET[
"cmdClass"]) ==
"ilnotegui")
387 $tabs_gui->addTarget(
"info_short",
388 $this->ctrl->getLinkTargetByClass(
389 array(
"ilobjfoldergui",
"ilinfoscreengui"),
"showSummary"),
390 array(
"showSummary",
"",
"infoScreen"),
391 "",
"", $force_active);
395 if ($rbacsystem->checkAccess(
'write',$this->ref_id))
397 $tabs_gui->addTarget(
"settings",
398 $this->ctrl->getLinkTarget($this,
"edit"),
"edit",
"",
"", ($ilCtrl->getCmd() ==
"edit"));
402 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
405 $tabs_gui->addTarget(
'learning_progress',
406 $this->ctrl->getLinkTargetByClass(array(
'ilobjfoldergui',
'illearningprogressgui'),
''),
408 array(
'illplistofobjectsgui',
'illplistofsettingsgui',
'illearningprogressgui',
'illplistofprogressgui'));
411 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
413 $tabs_gui->addTarget(
415 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
''),
422 if ($rbacsystem->checkAccess(
'edit_permission',$this->ref_id))
424 $tabs_gui->addTarget(
"perm_settings",
425 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
429 if ($this->ctrl->getTargetScript() ==
"repository.php" and !empty(
$_SESSION[
'il_rep_clipboard']))
431 $tabs_gui->addTarget(
"clipboard",
432 $this->ctrl->getLinkTarget($this,
"clipboard"),
"clipboard", get_class($this));
440 include_once
'./Services/AccessControl/classes/class.ilConditionHandlerInterface.php';
442 if(!is_object($this->chi_obj))
447 $this->ctrl->saveParameter($this,
'item_id',
$_GET[
'item_id']);
462 global $rbacsystem,$ilUser;
469 $this->tabs_gui->addSubTabTarget(
"activation",
470 $this->ctrl->getLinkTargetByClass(
'ilCourseItemAdministrationGUI',
'edit'),
471 "edit", get_class($this));
472 $this->ctrl->setParameterByClass(
'ilconditionhandlerinterface',
'item_id',(
int)
$_GET[
'item_id']);
473 $this->tabs_gui->addSubTabTarget(
"preconditions",
474 $this->ctrl->getLinkTargetByClass(
'ilConditionHandlerInterface',
'listConditions'),
475 "",
"ilConditionHandlerInterface");
487 if ($ilAccess->checkAccess(
"read",
"", $a_target))
489 $_GET[
"cmd"] =
"frameset";
490 $_GET[
"ref_id"] = $a_target;
491 include(
"repository.php");
523 $ilErr->raiseError($lng->txt(
"msg_no_perm_read"), $ilErr->FATAL);
530 if (!$ilAccess->checkAccess(
"read",
"", $this->ref_id))
532 $this->ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
534 $filename = $this->
object->downloadFolder();
546 if ($course_ref_id = $tree->checkForParentType($this->object->getRefId(),
'crs'))
548 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
549 include_once(
"./Modules/Course/classes/class.ilObjCourseGUI.php");
553 $this->object->getRefId());
561 if(!$crs_ref = $tree->checkForParentType($this->ref_id,
'crs'))
565 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
573 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
575 $this->ctrl->setCmdClass(get_class($course_content_obj));
576 $this->ctrl->setCmd(
'editUserTimings');
577 $this->ctrl->forwardCommand($course_content_obj);