4 include_once
'./Services/WebServices/ECS/classes/class.ilECSSetting.php';
35 $this->container = $settingsContainer;
39 $this->lng->loadLanguageModule(
'ecs');
77 $GLOBALS[
'tpl']->setTitle($this->lng->txt(
'ecs_campus_connect_title'));
79 $this->ctrl->saveParameter($this,
'server_id');
80 $this->ctrl->saveParameter($this,
'mid');
81 $this->ctrl->saveParameter($this,
'tid');
83 $next_class = $this->ctrl->getNextClass($this);
84 $cmd = $this->ctrl->getCmd();
109 $GLOBALS[
'ilCtrl']->returnToParent($this);
123 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
137 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
152 $current_node = (array) ((
$_REQUEST[
'lnodes']) ?
$_REQUEST[
'lnodes'] : ROOT_FOLDER_ID);
153 $current_node = end($current_node);
155 $this->ctrl->setParameter($this,
'lnodes',$current_node);
158 $ilTabs->activateTab(
'ecs_crs_allocation');
159 $ilTabs->activateSubTab(
'cInitTree');
161 $GLOBALS[
'tpl']->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_cmap_overview.html',
'Services/WebServices/ECS');
166 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
167 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
169 if($current_attribute === null)
172 $current_attribute = (string)
$_REQUEST[
'ecs_ca'];
173 if(!$current_attribute)
196 $GLOBALS[
'tpl']->setVariable(
'TFORM_ACTION',$this->ctrl->getFormAction($this));
197 $GLOBALS[
'tpl']->setVariable(
'LOCAL_EXPLORER',$explorer->getOutput());
198 $GLOBALS[
'tpl']->setVariable(
'MAPPING_FORM',$form->getHTML());
206 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
216 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
228 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingLocalExplorer.php';
230 $this->ctrl->getLinkTarget($this,
'cInitOverview'),
237 $checked_node = array_pop($lnodes);
240 $checked_node = (int) $_REQUEST[
'lid'];
245 $explorer->setCheckedItems(array($checked_node));
249 $explorer->setCheckedItems(array(ROOT_FOLDER_ID));
251 $explorer->setTargetGet(
'lref_id');
252 $explorer->setSessionExpandVariable(
'lexpand');
253 $explorer->setExpand((
int)
$_GET[
'lexpand']);
254 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'cInitOverview'));
255 $explorer->setOutput(0);
264 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
267 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
269 $form->setTableWidth(
"100%");
270 $this->ctrl->setParameter($this,
'ecs_ca',$current_attribute);
271 $form->setFormAction($this->ctrl->getFormAction($this));
272 $this->ctrl->setParameter($this,
'ecs_ca',
'');
277 $attributes = $attributes_obj->getAttributeSequence($current_attribute);
278 foreach($attributes as $att_name)
280 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
284 $section->setTitle($this->lng->txt(
'ecs_cmap_att_'.$att_name));
289 $isfilter =
new ilRadioGroupInputGUI($this->lng->txt(
'ecs_cmap_form_filter'),$att_name.
'_is_filter');
290 $isfilter->setValue($rule->isFilterEnabled() ? 1 : 0);
292 $all_values =
new ilRadioOption($this->lng->txt(
'ecs_cmap_form_all_values'),0);
293 $isfilter->addOption($all_values);
295 $use_filter =
new ilRadioOption($this->lng->txt(
'ecs_cmap_form_filter_by_values'),1);
297 $filter->
setInfo($this->lng->txt(
'ecs_cmap_form_filter_info'));
298 $filter->setSize(50);
299 $filter->setMaxLength(512);
300 $filter->setRequired(
true);
301 $filter->
setValue($rule->getFilter());
302 $use_filter->addSubItem($filter);
304 $isfilter->addOption($use_filter);
306 $form->addItem($isfilter);
309 $subdirs =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_form_create_subdirs'),$att_name.
'_subdirs');
310 $subdirs->setChecked($rule->isSubdirCreationEnabled());
311 $subdirs->setValue(1);
326 $form->addItem($subdirs);
356 $hidden_atts->setValue(implode(
',',$attributes));
357 $form->addItem($hidden_atts);
360 if($current_attribute)
362 $form->addCommandButton(
'cSaveOverview',$this->lng->txt(
'save'));
365 if($attributes_obj->getNextAttributeName($current_attribute))
367 $form->addCommandButton(
'cAddAttribute', $this->lng->txt(
'ecs_cmap_add_attribute_btn'));
369 if($attributes_obj->getPreviousAttributeName($current_attribute))
371 $form->addCommandButton(
'cDeleteAttribute', $this->lng->txt(
'ecs_cmap_delete_attribute_btn'));
379 $form->addCommandButton(
'cDeleteRulesOfNode', $this->lng->txt(
'ecs_cmap_delete_rule'));
382 #$form->addCommandButton('cInitOverview', $this->lng->txt('cancel'));
384 $form->setShowTopButtons(
false);
394 $current_node = (int)
$_REQUEST[
'lnodes'];
395 $current_att = (string)
$_REQUEST[
'ecs_ca'];
398 if($form->checkInput())
401 $all_attributes = explode(
',',$form->getInput(
'attributes'));
402 foreach((array) $all_attributes as $att_name)
409 $rule->setServerId($this->
getServer()->getServerId());
410 $rule->setMid($this->
getMid());
411 $rule->setRefId($current_node);
412 $rule->setAttribute($att_name);
413 $rule->enableFilter($form->getInput($att_name.
'_is_filter'));
414 $rule->setFilter($form->getInput($att_name.
'_filter'));
415 $rule->enableSubdirCreation($form->getInput($att_name.
'_subdirs'));
419 if($rule->getRuleId())
430 $this->ctrl->setParameter($this,
'lnodes',$current_node);
431 $this->ctrl->redirect($this,
'cInitOverview');
434 $form->setValuesByPost();
441 $current_node = (int)
$_REQUEST[
'lnodes'];
443 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
449 foreach($rules as $rid)
455 $this->ctrl->redirect($this,
'cInitOverview');
471 $ilTabs->activateTab(
'ecs_crs_allocation');
472 $ilTabs->activateSubTab(
'cSettings');
479 $GLOBALS[
'tpl']->setContent($form->getHTML());
489 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
491 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
493 $form->setFormAction($this->ctrl->getFormAction($this));
494 $form->setTitle($this->lng->txt(
'settings'));
499 $form->addItem($check);
503 $imp =
new ilCustomInputGUI($this->lng->txt(
'ecs_cmap_def_cat'),
'default_cat');
506 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'Services/WebServices/ECS');
507 $tpl->setVariable(
'SIZE',5);
508 $tpl->setVariable(
'MAXLENGTH',11);
509 $tpl->setVariable(
'POST_VAR',
'default_cat');
512 $tpl->setVariable(
'PROPERTY_VALUE',$default);
516 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
518 $path->enableTextOnly(
false);
519 $path->enableHideLeaf(
false);
520 $tpl->setVariable(
'COMPLETE_PATH',
$path->getPath(ROOT_FOLDER_ID, $default));
523 $imp->setHtml(
$tpl->get());
524 $imp->setInfo($this->lng->txt(
'ecs_cmap_def_cat_info'));
525 $form->addItem($imp);
528 $allinone =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_all_in_one'),
'allinone');
530 $allinone->setInfo($this->lng->txt(
'ecs_cmap_all_in_one_info'));
532 $allinone_cat =
new ilCustomInputGUI($this->lng->txt(
'ecs_cmap_all_in_one_cat'),
'allinone_cat');
535 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'Services/WebServices/ECS');
536 $tpl->setVariable(
'SIZE',5);
537 $tpl->setVariable(
'MAXLENGTH',11);
538 $tpl->setVariable(
'POST_VAR',
'allinone_cat');
541 $tpl->setVariable(
'PROPERTY_VALUE',$cat);
544 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
546 $path->enableTextOnly(
false);
547 $path->enableHideLeaf(
false);
548 $tpl->setVariable(
'COMPLETE_PATH',
$path->getPath(ROOT_FOLDER_ID, $default));
551 $allinone_cat->setHtml(
$tpl->get());
552 $allinone->addSubItem($allinone_cat);
553 $form->addItem($allinone);
556 $multiple =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_multiple_atts'),
'multiple');
560 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
561 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
562 $attributes =
new ilSelectInputGUI($this->lng->txt(
'ecs_cmap_attributes'),
'atts');
564 $attributes->setValue(
568 )->getAttributeValues());
569 $attributes->setRequired(
true);
571 $multiple->addSubItem($attributes);
573 $form->addItem($multiple);
577 $rm->setTitle($this->lng->txt(
'ecs_role_mappings'));
582 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
585 $role_map =
new ilTextInputGUI($this->lng->txt($info[
'lang']),$name);
586 $role_map->
setValue($mapping_defs[$name]);
587 $role_map->setSize(32);
588 $role_map->setMaxLength(64);
589 $role_map->setRequired($info[
'required']);
590 $form->addItem($role_map);
594 $form->addCommandButton(
'cUpdateSettings',$this->lng->txt(
'save'));
595 $form->addCommandButton(
'cSettings', $this->lng->txt(
'cancel'));
608 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
610 $ilTabs->activateTab(
'ecs_dir_allocation');
611 $ilTabs->activateSubTab(
'dSettings');
613 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
619 $GLOBALS[
'tpl']->setContent($form->getHTML());
630 if($form->checkInput())
632 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
634 $settings->enableCourseAllocation($form->getInput(
'enabled'));
635 $settings->setDefaultCourseCategory($form->getInput(
'default_cat'));
636 $settings->enableAllInOne($form->getInput(
'allinone'));
637 $settings->setAllInOneCategory($form->getInput(
'allinone_cat'));
638 $settings->enableAttributeMapping($form->getInput(
'multiple'));
640 $role_mappings = array();
643 $role_mappings[$name] = $form->getInput($name);
645 $settings->setRoleMappings($role_mappings);
649 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
651 $attributes->delete();
653 $form_atts = $form->getInput(
'atts');
655 foreach($form_atts as $name)
663 $att->setServerId($this->
getServer()->getServerId());
664 $att->setMid($this->
getMid());
665 $att->setName($name);
673 $GLOBALS[
'ilCtrl']->redirect($this,
'cSettings');
676 $form->setValuesByPost();
689 $ilTabs->setTabActive(
'ecs_crs_allocation');
690 $ilTabs->setSubTabActive(
'cAttributes');
692 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributesTableGUI.php';
693 $table =
new ilECSCourseAttributesTableGUI(
703 $this->
getMid())->getAttributes());
705 $GLOBALS[
'tpl']->setContent($table->getHTML());
718 if($form->checkInput())
720 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
722 $settings->enableDirectoryMapping((
bool) $form->getInput(
'active'));
723 $settings->enableEmptyContainerCreation(!$form->getInput(
'empty'));
730 $form->setValuesByPost();
732 $ilCtrl->redirect($this,
'dSettings');
740 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
741 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
744 $form->setFormAction($this->ctrl->getFormAction($this));
745 $form->setTitle($this->lng->txt(
'general_settings'));
747 $active =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_node_mapping_activate'),
'active');
749 $form->addItem($active);
751 $create_empty =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_node_mapping_create_empty'),
'empty');
753 $create_empty->setInfo($this->lng->txt(
'ecs_node_mapping_create_empty_info'));
754 $form->addItem($create_empty);
756 $form->addCommandButton(
'dUpdateSettings',$this->lng->txt(
'save'));
757 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
770 $GLOBALS[
'ilTabs']->activateSubTab(
'dTrees');
771 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
773 $ilToolbar->addButton(
774 $this->lng->txt(
'ecs_sync_trees'),
775 $this->ctrl->getLinkTarget($this,
'dSynchronizeTrees'));
777 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingTreeTableGUI.php';
786 $dtreeTable->parse();
787 $GLOBALS[
'tpl']->setContent($dtreeTable->getHTML());
797 $GLOBALS[
'ilTabs']->activateSubTab(
'dTrees');
798 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
800 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
801 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
804 $confirm->setFormAction($this->ctrl->getFormAction($this));
805 $confirm->setHeaderText($this->lng->txt(
'ecs_confirm_delete_tree'));
813 (
int) $_REQUEST[
'tid']
816 $confirm->setConfirm($this->lng->txt(
'delete'),
'dDeleteTree');
817 $confirm->setCancel($this->lng->txt(
'cancel'),
'dTrees');
819 $GLOBALS[
'tpl']->setContent($confirm->getHTML());
827 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
828 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
830 $GLOBALS[
'ilLog']->write(
'Deleting tree');
838 include_once
'./Services/WebServices/ECS/classes/class.ilECSImport.php';
845 (
int) $_REQUEST[
'tid']
850 $data->setServerId($this->
getServer()->getServerId());
851 $data->setMid($this->
getMid());
852 $data->setTreeId((
int) $_REQUEST[
'tid']);
856 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
860 (
int) $_REQUEST[
'tid']
864 $this->ctrl->redirect($this,
'dTrees');
872 $GLOBALS[
'tpl']->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_edit_tree.html',
'Services/WebServices/ECS');
874 $this->ctrl->saveParameter($this,
'cid');
878 $this->lng->txt(
'ecs_back_settings'),
879 $this->ctrl->getLinkTarget($this,
'cancel')
882 $this->lng->txt(
'ecs_cms_dir_tree'),
883 $this->ctrl->getLinkTarget($this,
'dTrees')
886 $GLOBALS[
'tpl']->setVariable(
'LEGEND',
$GLOBALS[
'lng']->txt(
'ecs_status_legend'));
887 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped'));
888 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED_DISCON',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped_discon'));
889 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED_NONDISCON',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped_nondiscon'));
890 $GLOBALS[
'tpl']->setVariable(
'MAPPED',
$GLOBALS[
'lng']->txt(
'ecs_status_mapped'));
891 $GLOBALS[
'tpl']->setVariable(
'DELETED',
$GLOBALS[
'lng']->txt(
'ecs_status_deleted'));
894 $GLOBALS[
'tpl']->setVariable(
'GENERAL_FORM',$form->getHTML());
895 $GLOBALS[
'tpl']->setVariable(
'TFORM_ACTION',$this->ctrl->getFormAction($this,
'dEditTree'));
906 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
907 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
914 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
922 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
923 $form =
new ilPropertyFormGUI();
924 $form->setFormAction($this->ctrl->getFormAction($this,
'dEditTree'));
925 $form->setTitle($this->lng->txt(
'general_settings'));
926 $form->addCommandButton(
'dUpdateTreeSettings', $this->lng->txt(
'save'));
927 $form->addCommandButton(
'dTrees', $this->lng->txt(
'cancel'));
928 $form->setTableWidth(
'30%');
931 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
936 $cmsid->setDisabled(
true);
938 $cmsid->setMaxLength(12);
939 $form->addItem($cmsid);
945 (
int) $_REQUEST[
'tid']);
951 $form->addItem($status);
956 $title->setChecked($assignment->isTitleUpdateEnabled());
957 #$title->setInfo($this->lng->txt('ecs_title_update_info'));
958 $form->addItem($title);
961 $position =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_position_updates'),
'position');
963 $position->setChecked($mapping_advanced && $assignment->isPositionUpdateEnabled());
964 $position->setValue(1);
965 #$position->setInfo($this->lng->txt('ecs_position_update_info'));
966 $form->addItem($position);
970 $tree->setChecked($mapping_advanced && $assignment->isTreeUpdateEnabled());
972 #$tree->setInfo($this->lng->txt('ecs_tree_update_info'));
973 $form->addItem($tree);
984 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
985 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
992 $assignment->setRefId(0);
993 $assignment->setObjId(0);
996 if($form->checkInput())
998 $assignment->enableTitleUpdate($form->getInput(
'title'));
999 $assignment->enableTreeUpdate($form->getInput(
'tree'));
1000 $assignment->enablePositionUpdate($form->getInput(
'position'));
1001 $assignment->update();
1004 $this->ctrl->redirect($this,
'dEditTree');
1007 $form->setValuesByPost();
1018 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTreeSynchronizer.php';
1026 $this->ctrl->redirect($this,
'dTrees');
1031 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSDirectoryTreeConnector.php';
1036 $res = $connector->getDirectoryTrees();
1037 foreach((array)
$res->getLinkIds() as $cms_id)
1039 include_once
'./Services/WebServices/ECS/classes/class.ilECSEventQueueReader.php';
1040 include_once
'./Services/WebServices/ECS/classes/class.ilECSEvent.php';
1048 $this->ctrl->redirect($this,
'dTrees');
1053 $this->ctrl->redirect($this,
'dTrees');
1064 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingLocalExplorer.php';
1066 $this->ctrl->getLinkTarget($this,
'dEditTree'),
1073 $checked_node = array_pop($lnodes);
1076 $checked_node = (int) $_REQUEST[
'lid'];
1081 $explorer->setCheckedItems(array($checked_node));
1085 $explorer->setCheckedItems(array(ROOT_FOLDER_ID));
1087 $explorer->setTargetGet(
'lref_id');
1088 $explorer->setSessionExpandVariable(
'lexpand');
1089 $explorer->setExpand((
int)
$_GET[
'lexpand']);
1090 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'dEditTree'));
1091 $explorer->setOutput(0);
1092 $GLOBALS[
'tpl']->setVariable(
'LOCAL_EXPLORER',$explorer->getOutput());
1104 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1105 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingCmsExplorer.php';
1106 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1109 $this->ctrl->getLinkTarget($this,
'dEditTree'),
1117 (
int) $_REQUEST[
'tid']
1120 $explorer->setPostVar(
'rnodes[]');
1123 $active_node = $tree->getRootId();
1124 foreach($localExplorer->getCheckedItems() as
$ref_id)
1126 $explorer->setCheckedItems(
1130 (
int) $_REQUEST[
'tid'],
1138 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1139 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1144 (
int) $_REQUEST[
'tid'],
1148 foreach($cmsTree->getPathId($cs_id) as $path_id)
1150 #$explorer->setExpand($path_id);
1154 $explorer->setTargetGet(
'rref_id');
1155 $explorer->setSessionExpandVariable(
'rexpand');
1157 #if((int) $_REQUEST['rexpand'])
1159 $explorer->setExpand((
int)
$_GET[
'rexpand']);
1161 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'dEditTree'));
1162 $explorer->setOutput(0);
1163 $GLOBALS[
'tpl']->setVariable(
'REMOTE_EXPLORER',$explorer->getOutput());
1173 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
1191 $this->ctrl->redirect($this,
'dEditTree');
1196 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1205 $nodes = (array)
$_POST[
'rnodes'];
1206 $nodes = (array) array_reverse($nodes);
1208 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
1209 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1210 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1211 foreach($nodes as $cms_id)
1216 (
int) $_REQUEST[
'tid'],
1219 $assignment->setRefId(
$ref_id);
1221 $assignment->enablePositionUpdate(
false);
1222 $assignment->enableTreeUpdate(
false);
1226 (
int) $_REQUEST[
'tid']
1228 $assignment->update();
1232 $childs = $cmsTree->getSubTreeIds($cms_id);
1237 (
int) $_REQUEST[
'tid'],
1246 (
int) $_REQUEST[
'tid']
1250 $this->ctrl->setParameter($this,
'lid',(
int)
$ref_id);
1253 $this->ctrl->redirect($this,
'dEditTree');
1262 $GLOBALS[
'ilTabs']->activateSubTab(
'dMappingOverview');
1263 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
1276 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php';
1278 $ilTabs->clearTargets();
1279 $ilTabs->setBackTarget(
1280 $this->lng->txt(
'ecs_back_settings'),
1281 $this->ctrl->getParentReturn($this)
1287 'ecs_dir_allocation',
1288 $this->lng->txt(
'ecs_dir_alloc'),
1289 $this->ctrl->getLinkTarget($this,
'dSettings')
1294 'ecs_crs_allocation',
1295 $this->lng->txt(
'ecs_crs_alloc'),
1296 $this->ctrl->getLinkTarget($this,
'cStart')
1309 if($a_tab == self::TAB_DIRECTORY)
1313 $this->lng->txt(
'ecs_cc_mapping_overview'),
1314 $this->ctrl->getLinkTarget($this,
'dMappingOverview')
1318 $this->lng->txt(
'ecs_cms_dir_tree'),
1319 $this->ctrl->getLinkTarget($this,
'dTrees')
1323 $this->lng->txt(
'settings'),
1324 $this->ctrl->getLinkTarget($this,
'dSettings')
1327 if($a_tab == self::TAB_COURSE)
1330 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
1333 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
1338 $this->lng->txt(
'ecs_cmap_overview'),
1339 $this->ctrl->getLinkTarget($this,
'cInitOverview')
1345 $this->lng->txt(
'settings'),
1346 $this->ctrl->getLinkTarget($this,
'cSettings')