21 require_once
"./Services/Container/classes/class.ilContainerGUI.php";
36 public function __construct($a_data, $a_id = 0, $a_call_by_reference =
true, $a_prepare_output =
false)
40 $this->tree = $DIC->repositoryTree();
41 $this->tabs = $DIC->tabs();
42 $this->
user = $DIC->user();
43 $this->ctrl = $DIC->ctrl();
44 $this->lng = $DIC->language();
45 $this->access = $DIC->access();
46 $this->rbacsystem = $DIC->rbac()->system();
47 $this->help = $DIC[
"ilHelp"];
48 $this->error = $DIC[
"ilErr"];
49 $this->tpl = $DIC[
"tpl"];
52 parent::__construct($a_data, $a_id, $a_call_by_reference, $a_prepare_output,
false);
65 if (strtolower(
$_GET[
"baseClass"]) ==
"iladministrationgui") {
71 include_once
'Services/Tracking/classes/class.ilLearningProgress.php';
75 $this->
object->getRefId(),
80 $this->tabs_gui->setTabActive(
'view_content');
93 $ilTabs->activateTab(
"view_content");
94 $ret = parent::renderObject();
103 $next_class = $this->ctrl->getNextClass($this);
104 $cmd = $this->ctrl->getCmd();
109 switch ($next_class) {
110 case 'ilpermissiongui':
112 $this->tabs_gui->setTabActive(
'perm_settings');
113 include_once(
"Services/AccessControl/classes/class.ilPermissionGUI.php");
115 $ret =&$this->ctrl->forwardCommand($perm_gui);
118 case 'ilcoursecontentgui':
120 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
122 $this->ctrl->forwardCommand($course_content_obj);
125 case "illearningprogressgui":
127 include_once
'./Services/Tracking/classes/class.ilLearningProgressGUI.php';
131 $this->
object->getRefId(),
134 $this->ctrl->forwardCommand($new_gui);
135 $this->tabs_gui->setTabActive(
'learning_progress');
139 case "ilcontainerpagegui":
143 $this->tpl->setContent(
$ret);
147 case 'ilinfoscreengui':
152 case 'ilobjectcopygui':
155 include_once
'./Services/Object/classes/class.ilObjectCopyGUI.php';
157 $cp->setType(
'fold');
158 $this->ctrl->forwardCommand($cp);
161 case "ilobjstylesheetgui":
168 $this->tabs_gui->setTabActive(
'export');
169 include_once
'./Services/Export/classes/class.ilExportGUI.php';
171 $exp->addFormat(
'xml');
172 $this->ctrl->forwardCommand($exp);
175 case "ilcommonactiondispatchergui":
176 include_once(
"Services/Object/classes/class.ilCommonActionDispatcherGUI.php");
178 $this->ctrl->forwardCommand($gui);
181 case 'ildidactictemplategui':
182 $this->ctrl->setReturn($this,
'edit');
183 include_once
'./Services/DidacticTemplate/classes/class.ilDidacticTemplateGUI.php';
185 $this->ctrl->forwardCommand($did);
188 $this->tabs_gui->setTabActive(
'none');
193 case 'ilbackgroundtaskhub':
194 include_once
'./Services/BackgroundTask/classes/class.ilBackgroundTaskHub.php';
196 $this->ctrl->forwardCommand($bggui);
223 $this->folder_tree =&$a_tree;
236 if (parent::importFileObject($parent_id, $a_catch_errors)) {
238 $this->ctrl->returnToParent($this);
264 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
282 $this->ctrl->setCmd(
"showSummary");
283 $this->ctrl->setCmdClass(
"ilinfoscreengui");
289 include_once
'./Services/Container/classes/class.ilContainerSortingSettings.php';
296 $this->ctrl->setParameter($this,
"ref_id", $a_new_object->
getRefId());
307 $this->ctrl->setCmd(
"showSummary");
308 $this->ctrl->setCmdClass(
"ilinfoscreengui");
319 if (!$ilAccess->checkAccess(
"visible",
"", $this->ref_id)) {
320 $this->
ilias->raiseError($this->lng->txt(
"msg_no_perm_read"), $this->
ilias->error_obj->MESSAGE);
323 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
326 $GLOBALS[
'ilTabs']->activateTab(
'info_short');
328 $info->enablePrivateNotes();
330 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"])) {
335 $info->enableNewsEditing(
false);
336 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"])) {
338 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
340 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);
366 $this->ctrl->setParameter($this,
"ref_id", $this->ref_id);
368 $ilHelp->setScreenIdComponent(
"fold");
370 $this->tabs_gui->setTabActive(
"");
371 if (
$rbacsystem->checkAccess(
'read', $this->ref_id)) {
372 $this->tabs_gui->addTab(
374 $lng->txt(
"content"),
375 $this->ctrl->getLinkTarget($this,
"")
379 $force_active = ($this->ctrl->getNextClass() ==
"ilinfoscreengui" 380 || strtolower(
$_GET[
"cmdClass"]) ==
"ilnotegui")
383 $this->tabs_gui->addTarget(
385 $this->ctrl->getLinkTargetByClass(
386 array(
"ilobjfoldergui",
"ilinfoscreengui"),
389 array(
"showSummary",
"",
"infoScreen"),
397 if (
$rbacsystem->checkAccess(
'write', $this->ref_id)) {
398 $this->tabs_gui->addTarget(
400 $this->ctrl->getLinkTarget($this,
"edit"),
409 include_once
'./Services/Tracking/classes/class.ilLearningProgressAccess.php';
411 $this->tabs_gui->addTarget(
413 $this->ctrl->getLinkTargetByClass(
array(
'ilobjfoldergui',
'illearningprogressgui'),
''),
415 array(
'illplistofobjectsgui',
'illplistofsettingsgui',
'illearningprogressgui',
'illplistofprogressgui')
419 if ($ilAccess->checkAccess(
'write',
'', $this->object->getRefId())) {
420 $this->tabs_gui->addTarget(
422 $this->ctrl->getLinkTargetByClass(
'ilexportgui',
''),
429 if (
$rbacsystem->checkAccess(
'edit_permission', $this->ref_id)) {
430 $this->tabs_gui->addTarget(
432 $this->ctrl->getLinkTargetByClass(
array(get_class($this),
'ilpermissiongui'),
"perm"),
433 array(
"perm",
"info",
"owner"),
439 if (
$_GET[
"baseClass"] ==
"ilRepositoryGUI" and !empty(
$_SESSION[
'il_rep_clipboard'])) {
440 $this->tabs_gui->addTarget(
442 $this->ctrl->getLinkTarget($this,
"clipboard"),
452 public static function _goto($a_target)
456 $ilAccess = $DIC->access();
458 $lng = $DIC->language();
460 if ($ilAccess->checkAccess(
"read",
"", $a_target)) {
473 if (!$ilAccess->checkAccess(
"read",
"", $this->ref_id)) {
474 $this->
ilias->raiseError($this->lng->txt(
"msg_no_perm_read"), $this->
ilias->error_obj->MESSAGE);
476 $filename = $this->
object->downloadFolder();
492 if ($course_ref_id =
$tree->checkForParentType($this->object->getRefId(),
'crs')) {
493 include_once(
"./Modules/Course/classes/class.ilObjCourse.php");
494 include_once(
"./Modules/Course/classes/class.ilObjCourseGUI.php");
498 'ilcoursecontentgui',
513 if (!$crs_ref =
$tree->checkForParentType($this->ref_id,
'crs')) {
516 include_once
'./Modules/Course/classes/class.ilObjCourse.php';
523 include_once
'./Modules/Course/classes/class.ilCourseContentGUI.php';
525 $this->ctrl->setCmdClass(get_class($course_content_obj));
526 $this->ctrl->setCmd(
'editUserTimings');
527 $this->ctrl->forwardCommand($course_content_obj);
547 $ilTabs->activateTab(
"settings");
550 $ilErr->raiseError($this->lng->txt(
"msg_no_perm_write"),
$ilErr->MESSAGE);
556 $form->setValuesByArray($values,
true);
572 $lng->txt(
"fold_settings"),
573 $this->ctrl->getLinkTarget($this,
'edit')
577 if ($this->
ilias->getSetting(
"custom_icons")) {
580 $lng->txt(
"icon_settings"),
581 $this->ctrl->getLinkTarget($this,
'editIcons')
585 $ilTabs->activateSubTab($a_tab);
586 $ilTabs->activateTab(
"settings");
603 $this->tabs_gui->setTabActive(
'settings');
609 $tpl->setContent($a_form->getHTML());
616 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
618 $form->setFormAction($this->ctrl->getFormAction($this));
623 $form->addCommandButton(
'updateIcons', $this->lng->txt(
'save'));
638 if (
$form->checkInput()) {
641 if (
$_POST[
"cont_icon_delete"]) {
642 $this->
object->removeCustomIcon();
644 $this->
object->saveIcons($_FILES[
"cont_icon"][
'tmp_name']);
646 if ($_FILES[
"cont_icon"][
'tmp_name'] ||
$_POST[
"cont_icon_delete"]) {
649 $this->ctrl->redirect($this,
"editIcons");
652 $form->setValuesByPost();
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
setSubTabs($a_tab)
Set sub tabs.
setSortMode($a_mode)
set sort mode
saveSortingSettings(ilPropertyFormGUI $form)
Save sorting settings.
GUI class for the workflow of copying objects.
background task hub (aka ajax handler, GUI)
getEditFormValues()
Get values for edit form.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
showSummaryObject()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually...
static _tracProgress($a_user_id, $a_obj_id, $a_ref_id, $a_obj_type='')
prepareOutput($a_show_subobjects=true)
prepare output
static _lookupViewMode($a_id)
lookup view mode of container
static getASCIIFilename($a_filename)
convert utf8 to ascii filename
setFolderTree($a_tree)
set tree
importFileObject($parent_id=null, $a_catch_errors=true)
Import file object type $lng.
Export User Interface Class.
static checkAccess($a_ref_id, $a_allow_only_read=true)
check access to learning progress
getSortMode()
get sort mode
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.
GUI class for didactic template settings inside repository objects.
if(isset($_POST['submit'])) $form
getId()
get object id public
showCustomIconsEditing($a_input_colspan=1, ilPropertyFormGUI $a_form=null, $a_as_section=true)
show edit section of custom icons for container
renderObject()
Render folder.
static _gotoRepositoryNode($a_ref_id, $a_cmd="frameset")
Goto repository root.
updateCustom(ilPropertyFormGUI $a_form)
initDidacticTemplate(ilPropertyFormGUI $form)
Show didactic template types.
static _lookupObjId($a_id)
infoScreen()
show information screen
__construct($a_data, $a_id=0, $a_call_by_reference=true, $a_prepare_output=false)
Constructor public.
forwardToStyleSheet()
Forward to style object.
& forwardToPageObject()
forward command to page object
redirection script todo: (a better solution should control the processing via a xml file) ...
initEditCustomForm(ilPropertyFormGUI $a_form)
initEditForm()
Init object edit form.
modifyItemGUI($a_item_list_gui, $a_item_data, $a_show_path)
Modify Item ListGUI for presentation in container type $tree.
Create styles array
The data for the language used.
updateIconsObject()
update container icons
afterSave(ilObject $a_new_object)
infoScreenObject()
this one is called from the info button in the repository not very nice to set cmdClass/Cmd manually...
static _lookupAboStatus($a_id)
initSortingForm(ilPropertyFormGUI $form, array $a_sorting_settings)
Append sorting settings to property 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...
Create new PHPExcel object
obj_idprivate
const LP_CONTEXT_REPOSITORY
Class ilCourseContentGUI.
getEditFormCustomValues(array &$a_values)
getRefId()
get reference id public
checkPermission($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission and redirect on error.
New PermissionGUI (extends from old ilPermission2GUI) RBAC related output.
static _goto($a_target)
goto target group
addHeaderAction()
Add header action menu.
checkPermissionBool($a_perm, $a_cmd="", $a_type="", $a_ref_id=null)
Check permission.
editIconsObject($a_form=null)
Edit folder icons.
Class ilObjUserTrackingGUI.
static getInstanceFromAjaxCall()
(Re-)Build instance from ajax call
static deliverFile( $a_file, $a_filename, $a_mime='', $isInline=false, $removeAfterDelivery=false, $a_exit_after=true)
deliver file for download via browser.