20require_once
"./Services/Container/classes/class.ilContainerGUI.php";
30 function ilObjFolderGUI($a_data, $a_id = 0, $a_call_by_reference =
true, $a_prepare_output =
false)
33 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output,
false);
46 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui")
53 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
55 $this->object->getRefId(),
'fold');
58 $this->tabs_gui->setTabActive(
'view_content');
71 $ilTabs->activateTab(
"view_content");
72 $ret = parent::renderObject();
80 $next_class = $this->ctrl->getNextClass($this);
81 $cmd = $this->ctrl->getCmd();
88 case 'ilpermissiongui':
90 $this->tabs_gui->setTabActive(
'perm_settings');
91 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
93 $ret =& $this->ctrl->forwardCommand($perm_gui);
96 case 'ilcoursecontentgui':
98 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
100 $this->ctrl->forwardCommand($course_content_obj);
103 case "illearningprogressgui":
105 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
108 $this->object->getRefId(),
110 $this->ctrl->forwardCommand($new_gui);
111 $this->tabs_gui->setTabActive(
'learning_progress');
115 case "ilcontainerpagegui":
120 $this->tpl->setContent(
$ret);
124 case 'ilinfoscreengui':
129 case 'ilobjectcopygui':
132 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
134 $cp->setType(
'fold');
135 $this->ctrl->forwardCommand($cp);
138 case "ilobjstylesheetgui":
145 $this->tabs_gui->setTabActive(
'export');
146 include_once
'./Services/Export/classes/class.ilExportGUI.php';
148 $exp->addFormat(
'xml');
149 $this->ctrl->forwardCommand($exp);
152 case "ilcommonactiondispatchergui":
153 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
155 $this->ctrl->forwardCommand($gui);
158 case 'ildidactictemplategui':
159 $this->ctrl->setReturn($this,
'edit');
160 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php';
162 $this->ctrl->forwardCommand($did);
165 $this->tabs_gui->setTabActive(
'none');
196 $this->folder_tree =& $a_tree;
207 if(parent::importFileObject())
210 $this->ctrl->returnToParent($this);
236 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
238 $a_values[
"sor"] = $sort->getSortMode();
254 $this->ctrl->setCmd(
"showSummary");
255 $this->ctrl->setCmdClass(
"ilinfoscreengui");
261 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
268 $this->ctrl->setParameter($this,
"ref_id", $a_new_object->
getRefId());
279 $this->ctrl->setCmd(
"showSummary");
280 $this->ctrl->setCmdClass(
"ilinfoscreengui");
291 if (!$ilAccess->checkAccess(
"visible",
"", $this->ref_id))
293 $this->
ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
296 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
299 $info->enablePrivateNotes();
301 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
307 $info->enableNewsEditing(
false);
308 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
311 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
313 if ($enable_internal_rss)
315 $info->setBlockProperty(
"news",
"settings",
true);
316 $info->setBlockProperty(
"news",
"public_notifications_option",
true);
322 $info->addMetaDataSections($this->object->getId(),0, $this->object->getType());
325 $this->ctrl->forwardCommand(
$info);
336 $this->ctrl->setParameter($this,
"ref_id",$this->ref_id);
338 $ilHelp->setScreenIdComponent(
"fold");
340 $tabs_gui->setTabActive(
"");
341 if ($rbacsystem->checkAccess(
'read',$this->ref_id))
343 $tabs_gui->addTab(
"view_content",
$lng->txt(
"content"),
344 $this->ctrl->getLinkTarget($this,
""));
347 $force_active = ($this->ctrl->getNextClass() ==
"ilinfoscreengui"
348 || strtolower(
$_GET[
"cmdClass"]) ==
"ilnotegui")
351 $tabs_gui->addTarget(
"info_short",
352 $this->ctrl->getLinkTargetByClass(
353 array(
"ilobjfoldergui",
"ilinfoscreengui"),
"showSummary"),
354 array(
"showSummary",
"",
"infoScreen"),
355 "",
"", $force_active);
359 if ($rbacsystem->checkAccess(
'write',$this->ref_id))
361 $tabs_gui->addTarget(
"settings",
362 $this->ctrl->getLinkTarget($this,
"edit"),
"edit",
"",
"", (
$ilCtrl->getCmd() ==
"edit"));
366 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
369 $tabs_gui->addTarget(
'learning_progress',
370 $this->ctrl->getLinkTargetByClass(array(
'ilobjfoldergui',
'illearningprogressgui'),
''),
372 array(
'illplistofobjectsgui',
'illplistofsettingsgui',
'illearningprogressgui',
'illplistofprogressgui'));
375 if($ilAccess->checkAccess(
'write',
'',$this->object->getRefId()))
377 $tabs_gui->addTarget(
379 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
''),
386 if ($rbacsystem->checkAccess(
'edit_permission',$this->ref_id))
388 $tabs_gui->addTarget(
"perm_settings",
389 $this->ctrl->getLinkTargetByClass(array(get_class($this),
'ilpermissiongui'),
"perm"), array(
"perm",
"info",
"owner"),
'ilpermissiongui');
393 if (
$_GET[
"baseClass"] ==
"ilRepositoryGUI" and !empty(
$_SESSION[
'il_rep_clipboard']))
395 $tabs_gui->addTarget(
"clipboard",
396 $this->ctrl->getLinkTarget($this,
"clipboard"),
"clipboard", get_class($this));
404 public static function _goto($a_target)
408 if ($ilAccess->checkAccess(
"read",
"", $a_target))
419 if (!$ilAccess->checkAccess(
"read",
"", $this->ref_id))
421 $this->
ilias->raiseError($this->lng->txt(
"msg_no_perm_read"),$this->ilias->error_obj->MESSAGE);
423 $filename = $this->
object->downloadFolder();
435 if ($course_ref_id =
$tree->checkForParentType($this->object->getRefId(),
'crs'))
437 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
438 include_once(
"./Modules/Course/classes/class.ilObjCourseGUI.php");
442 $this->object->getRefId());
450 if(!$crs_ref =
$tree->checkForParentType($this->ref_id,
'crs'))
454 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
462 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
464 $this->ctrl->setCmdClass(get_class($course_content_obj));
465 $this->ctrl->setCmd(
'editUserTimings');
466 $this->ctrl->forwardCommand($course_content_obj);
485 $ilTabs->activateTab(
"settings");
489 $ilErr->raiseError($this->lng->txt(
"msg_no_perm_write"),
$ilErr->MESSAGE);
496 $form->setValuesByArray($values,TRUE);
498 $GLOBALS[
'tpl']->setContent($form->getHTML());
507 global $ilTabs,
$lng;
509 $ilTabs->addSubTab(
"settings",
510 $lng->txt(
"fold_settings"),
511 $this->ctrl->getLinkTarget($this,
'edit'));
514 if ($this->
ilias->getSetting(
"custom_icons"))
516 $ilTabs->addSubTab(
"icons",
517 $lng->txt(
"icon_settings"),
518 $this->ctrl->getLinkTarget($this,
'editIcons'));
521 $ilTabs->activateSubTab($a_tab);
522 $ilTabs->activateTab(
"settings");
539 $this->tabs_gui->setTabActive(
'settings');
546 $tpl->setContent($a_form->getHTML());
553 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
555 $form->setFormAction($this->ctrl->getFormAction($this));
560 $form->addCommandButton(
'updateIcons', $this->lng->txt(
'save'));
575 if($form->checkInput())
580 if(
$_POST[
"cont_icon_delete"])
582 $this->
object->removeCustomIcon();
584 $this->
object->saveIcons($_FILES[
"cont_icon"][
'tmp_name']);
586 if ($_FILES[
"cont_icon"][
'tmp_name'] ||
$_POST[
"cont_icon_delete"])
590 $this->ctrl->redirect($this,
"editIcons");
593 $form->setValuesByPost();
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
& forwardToPageObject()
forward command to page object
getEditFormValues()
Get values for edit form.
initSortingForm(ilPropertyFormGUI $form, array $a_sorting_settings)
Append sorting settings to property form.
forwardToStyleSheet()
Forward to style object.
showCustomIconsEditing($a_input_colspan=1, ilPropertyFormGUI $a_form=null, $a_as_section=true)
show edit section of custom icons for container
saveSortingSettings(ilPropertyFormGUI $form)
Save sorting settings.
Class ilCourseContentGUI.
GUI class for didactic template settings inside repository objects.
Export User Interface Class.
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress
const LP_CONTEXT_REPOSITORY
Class ilObjUserTrackingGUI.
static _tracProgress($a_user_id, $a_obj_id, $a_ref_id, $a_obj_type='')
static _modifyItemGUI($a_item_list_gui, $a_cmd_class, $a_item_data, $a_show_path, $a_abo_status, $a_course_ref_id, $a_course_obj_id, $a_parent_ref_id=0)
We need a static version of this, e.g.
setFolderTree($a_tree)
set tree
initEditCustomForm(ilPropertyFormGUI $a_form)
Add custom fields to update form.
modifyItemGUI($a_item_list_gui, $a_item_data, $a_show_path)
Modify Item ListGUI for presentation in container.
editIconsObject($a_form=null)
Edit folder icons.
renderObject()
Render folder.
getEditFormCustomValues(array &$a_values)
Add values to custom edit fields.
afterSave(ilObject $a_new_object)
Post (successful) object creation hook.
ilObjFolderGUI($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=false)
Constructor @access public.
updateIconsObject()
update container icons
infoScreenObject()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually,...
updateCustom(ilPropertyFormGUI $a_form)
Insert custom update form values into object.
setSubTabs($a_tab)
Set sub tabs.
static _goto($a_target)
goto target group
getTabs(&$tabs_gui)
Get tabs.
importFileObject()
Import object.
& executeCommand()
execute command note: this method is overwritten in all container objects
showSummaryObject()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually,...
infoScreen()
show information screen
GUI class for the workflow of copying objects.
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
prepareOutput()
prepare output
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
initDidacticTemplate(ilPropertyFormGUI $form)
Show didactic template types.
addHeaderAction()
Add header action menu.
initEditForm()
Init object edit form.
redirectToRefId($a_ref_id, $a_cmd="")
redirects to (repository) view per ref id usually to a container and usually used at the end of a sav...
Class ilObject Basic functions for all objects.
static _lookupObjId($a_id)
getRefId()
get reference id @access public
getId()
get object id @access public
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
static deliverFile($a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.
$GLOBALS['PHPCAS_CLIENT']
This global variable is used by the interface class phpCAS.
redirection script todo: (a better solution should control the processing via a xml file)