4 include_once
'./Services/WebServices/ECS/classes/class.ilECSSetting.php';
40 $this->log =
$GLOBALS[
'DIC']->logger()->wsrv();
42 $this->container = $settingsContainer;
46 $this->lng->loadLanguageModule(
'ecs');
84 $GLOBALS[
'tpl']->setTitle($this->lng->txt(
'ecs_campus_connect_title'));
86 $this->ctrl->saveParameter($this,
'server_id');
87 $this->ctrl->saveParameter($this,
'mid');
88 $this->ctrl->saveParameter($this,
'tid');
90 $next_class = $this->ctrl->getNextClass($this);
91 $cmd = $this->ctrl->getCmd();
94 switch ($next_class) {
104 $GLOBALS[
'tpl']->setDescription(
'');
114 $GLOBALS[
'ilCtrl']->returnToParent($this);
128 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
141 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
155 $current_node = (
array) (($_REQUEST[
'lnodes']) ? $_REQUEST[
'lnodes'] : ROOT_FOLDER_ID);
156 $current_node = end($current_node);
158 $this->ctrl->setParameter($this,
'lnodes', $current_node);
161 $ilTabs->activateTab(
'ecs_crs_allocation');
162 $ilTabs->activateSubTab(
'cInitTree');
164 $GLOBALS[
'tpl']->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_cmap_overview.html',
'Services/WebServices/ECS');
168 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
169 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
171 if ($current_attribute === null) {
173 $current_attribute = (
string) $_REQUEST[
'ecs_ca'];
174 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'),
236 $lnodes = (
array) $_REQUEST[
'lnodes'];
237 $checked_node = array_pop($lnodes);
238 if ((
int) $_REQUEST[
'lid']) {
239 $checked_node = (int) $_REQUEST[
'lid'];
243 $explorer->setCheckedItems(
array($checked_node));
245 $explorer->setCheckedItems(
array(ROOT_FOLDER_ID));
247 $explorer->setTargetGet(
'lref_id');
248 $explorer->setSessionExpandVariable(
'lexpand');
249 $explorer->setExpand((
int)
$_GET[
'lexpand']);
250 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'cInitOverview'));
251 $explorer->setOutput(0);
260 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
263 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
265 $form->setTableWidth(
"100%");
266 $this->ctrl->setParameter($this,
'ecs_ca', $current_attribute);
267 $form->setFormAction($this->ctrl->getFormAction($this));
268 $this->ctrl->setParameter($this,
'ecs_ca',
'');
273 $attributes = $attributes_obj->getAttributeSequence($current_attribute);
275 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
279 $section->setTitle($this->lng->txt(
'ecs_cmap_att_' . $att_name));
284 $isfilter =
new ilRadioGroupInputGUI($this->lng->txt(
'ecs_cmap_form_filter'), $att_name .
'_is_filter');
287 $all_values =
new ilRadioOption($this->lng->txt(
'ecs_cmap_form_all_values'), 0);
288 $isfilter->addOption($all_values);
290 $use_filter =
new ilRadioOption($this->lng->txt(
'ecs_cmap_form_filter_by_values'), 1);
292 $filter->
setInfo($this->lng->txt(
'ecs_cmap_form_filter_info'));
293 $filter->setSize(50);
294 $filter->setMaxLength(512);
295 $filter->setRequired(
true);
297 $use_filter->addSubItem($filter);
299 $isfilter->addOption($use_filter);
301 $form->addItem($isfilter);
304 $subdirs =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_form_create_subdirs'), $att_name .
'_subdirs');
306 $subdirs->setValue(1);
321 $form->addItem($subdirs);
352 $form->addItem($hidden_atts);
355 if ($current_attribute) {
356 $form->addCommandButton(
'cSaveOverview', $this->lng->txt(
'save'));
359 if ($attributes_obj->getNextAttributeName($current_attribute)) {
360 $form->addCommandButton(
'cAddAttribute', $this->lng->txt(
'ecs_cmap_add_attribute_btn'));
362 if ($attributes_obj->getPreviousAttributeName($current_attribute)) {
363 $form->addCommandButton(
'cDeleteAttribute', $this->lng->txt(
'ecs_cmap_delete_attribute_btn'));
370 $form->addCommandButton(
'cDeleteRulesOfNode', $this->lng->txt(
'ecs_cmap_delete_rule'));
373 #$form->addCommandButton('cInitOverview', $this->lng->txt('cancel')); 375 $form->setShowTopButtons(
false);
385 $current_node = (int) $_REQUEST[
'lnodes'];
386 $current_att = (
string) $_REQUEST[
'ecs_ca'];
389 if (
$form->checkInput()) {
391 $all_attributes = explode(
',',
$form->getInput(
'attributes'));
392 foreach ((
array) $all_attributes as $att_name) {
401 $rule->setRefId($current_node);
402 $rule->setAttribute($att_name);
403 $rule->enableFilter(
$form->getInput($att_name .
'_is_filter'));
404 $rule->setFilter(
$form->getInput($att_name .
'_filter'));
405 $rule->enableSubdirCreation(
$form->getInput($att_name .
'_subdirs'));
409 if (
$rule->getRuleId()) {
417 $this->ctrl->setParameter($this,
'lnodes', $current_node);
418 $this->ctrl->redirect($this,
'cInitOverview');
421 $form->setValuesByPost();
428 $current_node = (int) $_REQUEST[
'lnodes'];
430 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
437 foreach ($rules as $rid) {
442 $this->ctrl->redirect($this,
'cInitOverview');
458 $ilTabs->activateTab(
'ecs_crs_allocation');
459 $ilTabs->activateSubTab(
'cSettings');
475 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
477 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
479 $form->setFormAction($this->ctrl->getFormAction($this));
480 $form->setTitle($this->lng->txt(
'settings'));
485 $form->addItem($check);
489 $imp =
new ilCustomInputGUI($this->lng->txt(
'ecs_cmap_def_cat'),
'default_cat');
492 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'Services/WebServices/ECS');
493 $tpl->setVariable(
'SIZE', 5);
494 $tpl->setVariable(
'MAXLENGTH', 11);
495 $tpl->setVariable(
'POST_VAR',
'default_cat');
498 $tpl->setVariable(
'PROPERTY_VALUE', $default);
501 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
503 $path->enableTextOnly(
false);
504 $path->enableHideLeaf(
false);
505 $tpl->setVariable(
'COMPLETE_PATH',
$path->getPath(ROOT_FOLDER_ID, $default));
508 $imp->setHtml(
$tpl->get());
509 $imp->setInfo($this->lng->txt(
'ecs_cmap_def_cat_info'));
510 $form->addItem($imp);
513 $allinone =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_all_in_one'),
'allinone');
515 $allinone->setInfo($this->lng->txt(
'ecs_cmap_all_in_one_info'));
517 $allinone_cat =
new ilCustomInputGUI($this->lng->txt(
'ecs_cmap_all_in_one_cat'),
'allinone_cat');
520 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'Services/WebServices/ECS');
521 $tpl->setVariable(
'SIZE', 5);
522 $tpl->setVariable(
'MAXLENGTH', 11);
523 $tpl->setVariable(
'POST_VAR',
'allinone_cat');
526 $tpl->setVariable(
'PROPERTY_VALUE', $cat);
528 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
530 $path->enableTextOnly(
false);
531 $path->enableHideLeaf(
false);
532 $tpl->setVariable(
'COMPLETE_PATH',
$path->getPath(ROOT_FOLDER_ID, $default));
535 $allinone_cat->setHtml(
$tpl->get());
536 $allinone->addSubItem($allinone_cat);
537 $form->addItem($allinone);
540 $multiple =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_multiple_atts'),
'multiple');
544 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
545 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
552 )->getAttributeValues()
558 $form->addItem($multiple);
562 $rm->setTitle($this->lng->txt(
'ecs_role_mappings'));
566 $auth_type =
new ilSelectInputGUI($this->lng->txt(
'ecs_member_auth_type'),
'auth_mode');
568 $auth_type->setRequired(
true);
570 $form->addItem($auth_type);
574 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
578 $role_map->setSize(32);
579 $role_map->setMaxLength(64);
580 $role_map->setRequired(
$info[
'required']);
581 $form->addItem($role_map);
584 $form->addCommandButton(
'cUpdateSettings', $this->lng->txt(
'save'));
585 $form->addCommandButton(
'cSettings', $this->lng->txt(
'cancel'));
598 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
600 $ilTabs->activateTab(
'ecs_dir_allocation');
601 $ilTabs->activateSubTab(
'dSettings');
603 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
619 if (
$form->checkInput()) {
620 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
622 $settings->enableCourseAllocation(
$form->getInput(
'enabled'));
623 $settings->setDefaultCourseCategory(
$form->getInput(
'default_cat'));
624 $settings->enableAllInOne(
$form->getInput(
'allinone'));
625 $settings->setAllInOneCategory(
$form->getInput(
'allinone_cat'));
626 $settings->enableAttributeMapping(
$form->getInput(
'multiple'));
627 $settings->setAuthMode(
$form->getInput(
'auth_mode'));
630 $role_mappings =
array();
634 $settings->setRoleMappings($role_mappings);
638 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
642 $form_atts =
$form->getInput(
'atts');
644 foreach ($form_atts as
$name) {
650 $att->setServerId($this->
getServer()->getServerId());
651 $att->setMid($this->
getMid());
652 $att->setName($name);
660 $GLOBALS[
'ilCtrl']->redirect($this,
'cSettings');
663 $form->setValuesByPost();
676 $ilTabs->setTabActive(
'ecs_crs_allocation');
677 $ilTabs->setSubTabActive(
'cAttributes');
679 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributesTableGUI.php';
680 $table =
new ilECSCourseAttributesTableGUI(
707 if (
$form->checkInput()) {
708 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
710 $settings->enableDirectoryMapping((
bool)
$form->getInput(
'active'));
711 $settings->enableEmptyContainerCreation(!
$form->getInput(
'empty'));
716 $form->setValuesByPost();
718 $ilCtrl->redirect($this,
'dSettings');
726 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
727 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
730 $form->setFormAction($this->ctrl->getFormAction($this));
731 $form->setTitle($this->lng->txt(
'general_settings'));
733 $active =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_node_mapping_activate'),
'active');
735 $form->addItem($active);
737 $create_empty =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_node_mapping_create_empty'),
'empty');
739 $create_empty->setInfo($this->lng->txt(
'ecs_node_mapping_create_empty_info'));
740 $form->addItem($create_empty);
742 $form->addCommandButton(
'dUpdateSettings', $this->lng->txt(
'save'));
743 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
756 $GLOBALS[
'ilTabs']->activateSubTab(
'dTrees');
757 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
759 $ilToolbar->addButton(
760 $this->lng->txt(
'ecs_sync_trees'),
761 $this->ctrl->getLinkTarget($this,
'dSynchronizeTrees')
764 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingTreeTableGUI.php';
774 $dtreeTable->parse();
775 $GLOBALS[
'tpl']->setContent($dtreeTable->getHTML());
785 $GLOBALS[
'ilTabs']->activateSubTab(
'dTrees');
786 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
788 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
789 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
792 $confirm->setFormAction($this->ctrl->getFormAction($this));
793 $confirm->setHeaderText($this->lng->txt(
'ecs_confirm_delete_tree'));
797 (
int) $_REQUEST[
'tid'],
801 (
int) $_REQUEST[
'tid']
804 $confirm->setConfirm($this->lng->txt(
'delete'),
'dDeleteTree');
805 $confirm->setCancel($this->lng->txt(
'cancel'),
'dTrees');
807 $GLOBALS[
'tpl']->setContent($confirm->getHTML());
815 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
816 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
818 $GLOBALS[
'ilLog']->write(
'Deleting tree');
826 include_once
'./Services/WebServices/ECS/classes/class.ilECSImport.php';
833 (
int) $_REQUEST[
'tid']
840 $data->setTreeId((
int) $_REQUEST[
'tid']);
844 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
848 (
int) $_REQUEST[
'tid']
852 $this->ctrl->redirect($this,
'dTrees');
860 $GLOBALS[
'tpl']->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_edit_tree.html',
'Services/WebServices/ECS');
862 $this->ctrl->saveParameter($this,
'cid');
866 $this->lng->txt(
'ecs_back_settings'),
867 $this->ctrl->getLinkTarget($this,
'cancel')
870 $this->lng->txt(
'ecs_cms_dir_tree'),
871 $this->ctrl->getLinkTarget($this,
'dTrees')
874 $GLOBALS[
'tpl']->setVariable(
'LEGEND',
$GLOBALS[
'lng']->txt(
'ecs_status_legend'));
875 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped'));
876 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED_DISCON',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped_discon'));
877 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED_NONDISCON',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped_nondiscon'));
878 $GLOBALS[
'tpl']->setVariable(
'MAPPED',
$GLOBALS[
'lng']->txt(
'ecs_status_mapped'));
879 $GLOBALS[
'tpl']->setVariable(
'DELETED',
$GLOBALS[
'lng']->txt(
'ecs_status_deleted'));
882 $GLOBALS[
'tpl']->setVariable(
'GENERAL_FORM',
$form->getHTML());
883 $GLOBALS[
'tpl']->setVariable(
'TFORM_ACTION', $this->ctrl->getFormAction($this,
'dEditTree'));
894 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
895 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
901 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
905 (
int) $_REQUEST[
'tid'],
909 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
910 $form =
new ilPropertyFormGUI();
911 $form->setFormAction($this->ctrl->getFormAction($this,
'dEditTree'));
912 $form->setTitle($this->lng->txt(
'general_settings'));
913 $form->addCommandButton(
'dUpdateTreeSettings', $this->lng->txt(
'save'));
914 $form->addCommandButton(
'dTrees', $this->lng->txt(
'cancel'));
915 $form->setTableWidth(
'30%');
918 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
923 $cmsid->setDisabled(
true);
925 $cmsid->setMaxLength(12);
926 $form->addItem($cmsid);
932 (
int) $_REQUEST[
'tid']
939 $form->addItem($status);
944 $title->setChecked($assignment->isTitleUpdateEnabled());
945 #$title->setInfo($this->lng->txt('ecs_title_update_info')); 949 $position =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_position_updates'),
'position');
951 $position->setChecked($mapping_advanced && $assignment->isPositionUpdateEnabled());
952 $position->setValue(1);
953 #$position->setInfo($this->lng->txt('ecs_position_update_info')); 954 $form->addItem($position);
958 $tree->setChecked($mapping_advanced && $assignment->isTreeUpdateEnabled());
960 #$tree->setInfo($this->lng->txt('ecs_tree_update_info')); 961 $form->addItem($tree);
972 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
973 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
977 (
int) $_REQUEST[
'tid'],
980 $assignment->setRefId(0);
981 $assignment->setObjId(0);
984 if (
$form->checkInput()) {
985 $assignment->enableTitleUpdate(
$form->getInput(
'title'));
986 $assignment->enableTreeUpdate(
$form->getInput(
'tree'));
987 $assignment->enablePositionUpdate(
$form->getInput(
'position'));
988 $assignment->update();
991 $this->ctrl->redirect($this,
'dEditTree');
994 $form->setValuesByPost();
1005 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTreeSynchronizer.php';
1009 (
int) $_REQUEST[
'tid']
1013 $this->ctrl->redirect($this,
'dTrees');
1018 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSDirectoryTreeConnector.php';
1020 $this->log->dump(
'Start synchronizing cms directory trees');
1024 $res = $connector->getDirectoryTrees();
1028 foreach ((
array)
$res->getLinkIds() as $cms_id) {
1029 include_once
'./Services/WebServices/ECS/classes/class.ilECSEventQueueReader.php';
1030 include_once
'./Services/WebServices/ECS/classes/class.ilECSEvent.php';
1038 $this->ctrl->redirect($this,
'dTrees');
1041 $this->ctrl->redirect($this,
'dTrees');
1052 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingLocalExplorer.php';
1054 $this->ctrl->getLinkTarget($this,
'dEditTree'),
1060 $lnodes = (
array) $_REQUEST[
'lnodes'];
1061 $checked_node = array_pop($lnodes);
1062 if ((
int) $_REQUEST[
'lid']) {
1063 $checked_node = (int) $_REQUEST[
'lid'];
1066 if ($checked_node) {
1067 $explorer->setCheckedItems(
array($checked_node));
1069 $explorer->setCheckedItems(
array(ROOT_FOLDER_ID));
1071 $explorer->setTargetGet(
'lref_id');
1072 $explorer->setSessionExpandVariable(
'lexpand');
1073 $explorer->setExpand((
int)
$_GET[
'lexpand']);
1074 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'dEditTree'));
1075 $explorer->setOutput(0);
1076 $GLOBALS[
'tpl']->setVariable(
'LOCAL_EXPLORER', $explorer->getOutput());
1088 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1089 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingCmsExplorer.php';
1090 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1093 $this->ctrl->getLinkTarget($this,
'dEditTree'),
1096 (int) $_REQUEST[
'tid']
1101 (
int) $_REQUEST[
'tid']
1104 $explorer->setPostVar(
'rnodes[]');
1107 $active_node = $tree->getRootId();
1108 foreach ($localExplorer->getCheckedItems() as $ref_id) {
1109 $explorer->setCheckedItems(
1113 (
int) $_REQUEST[
'tid'],
1117 $active_node = $ref_id;
1121 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1122 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1127 (
int) $_REQUEST[
'tid'],
1130 foreach ($cmsTree->getPathId($cs_id) as $path_id) {
1131 #$explorer->setExpand($path_id); 1135 $explorer->setTargetGet(
'rref_id');
1136 $explorer->setSessionExpandVariable(
'rexpand');
1138 #if((int) $_REQUEST['rexpand']) 1140 $explorer->setExpand((
int)
$_GET[
'rexpand']);
1142 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'dEditTree'));
1143 $explorer->setOutput(0);
1144 $GLOBALS[
'tpl']->setVariable(
'REMOTE_EXPLORER', $explorer->getOutput());
1153 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
1157 (
int) $_REQUEST[
'tid']
1170 $this->ctrl->redirect($this,
'dEditTree');
1173 $ref_id = end(
$_POST[
'lnodes']);
1175 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1179 (
int) $_REQUEST[
'tid'],
1185 $nodes = (
array) array_reverse($nodes);
1187 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
1188 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1189 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1190 foreach ($nodes as $cms_id) {
1194 (
int) $_REQUEST[
'tid'],
1197 $assignment->setRefId($ref_id);
1199 $assignment->enablePositionUpdate(
false);
1200 $assignment->enableTreeUpdate(
false);
1204 (
int) $_REQUEST[
'tid']
1206 $assignment->update();
1210 $childs = $cmsTree->getSubTreeIds($cms_id);
1215 (
int) $_REQUEST[
'tid'],
1223 (
int) $_REQUEST[
'tid']
1227 $this->ctrl->setParameter($this,
'lid', (
int) $ref_id);
1230 $this->ctrl->redirect($this,
'dEditTree');
1239 $GLOBALS[
'ilTabs']->activateSubTab(
'dMappingOverview');
1240 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
1253 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php';
1255 $ilTabs->clearTargets();
1256 $ilTabs->setBackTarget(
1257 $this->lng->txt(
'ecs_back_settings'),
1258 $this->ctrl->getParentReturn($this)
1263 'ecs_dir_allocation',
1264 $this->lng->txt(
'ecs_dir_alloc'),
1265 $this->ctrl->getLinkTarget($this,
'dSettings')
1270 'ecs_crs_allocation',
1271 $this->lng->txt(
'ecs_crs_alloc'),
1272 $this->ctrl->getLinkTarget($this,
'cStart')
1285 if ($a_tab == self::TAB_DIRECTORY) {
1288 $this->lng->txt(
'ecs_cc_mapping_overview'),
1289 $this->ctrl->getLinkTarget($this,
'dMappingOverview')
1293 $this->lng->txt(
'ecs_cms_dir_tree'),
1294 $this->ctrl->getLinkTarget($this,
'dTrees')
1298 $this->lng->txt(
'settings'),
1299 $this->ctrl->getLinkTarget($this,
'dSettings')
1302 if ($a_tab == self::TAB_COURSE) {
1304 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
1307 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
1311 $this->lng->txt(
'ecs_cmap_overview'),
1312 $this->ctrl->getLinkTarget($this,
'cInitOverview')
1318 $this->lng->txt(
'settings'),
1319 $this->ctrl->getLinkTarget($this,
'cSettings')
static lookupCmsIdsOfTree($a_server_id, $a_mid, $a_tree_id)
$ilDB $ilDB
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static getRulesOfRefId($a_sid, $a_mid, $a_ref_id)
Get all rule of ref_id type $ilDB.
Creates a path for a start and endnode.
This class represents an option in a radio group.
initFormCSettings()
Init settings form.
dMappingOverview()
Show directory trees.
static getRoleMappingInfo($a_role_type_info=0)
Get role mapping info.
static updateStatus($a_server_id, $a_mid, $a_tree_id)
static getInstanceByServerId($a_server_id)
Get singleton instance per server.
static hasRules($a_sid, $a_mid, $a_ref_id)
setValue($a_value)
Set Value.
cSettings(ilPropertyFormGUI $form=null)
Show course allocation ilTabsGUI $ilTabs.
getContainer()
Get container object.
setTabs()
Set tabs ilTabsGUI $ilTabs.
static lookupRootId($a_tree_id)
lookup root id
executeCommand()
ilCtrl executeCommand
static lookupTitle($a_server_id, $a_mid, $a_tree_id)
Lookup title by obj id.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
cStart()
Goto default page.
dShowCmsExplorer(ilExplorer $localExplorer)
Show cms explorer.
dShowLocalExplorer()
Show local explorer.
static deleteMappings($a_server_id, $a_mid, $a_tree_id)
Delete mappings $ilDB $ilDB.
dSynchronizeTree()
Synchronize Tree.
dSettings(ilPropertyFormGUI $form=null)
Show directory allocation ilTabsGUI $ilTabs.
static getInstanceByServerMid($a_server_id, $a_mid)
Get instance.
static _lookupTitle($a_id)
lookup object title
cAttributes()
Show active attributes ilTabsGUI $ilTabs.
dStart()
Goto default page.
setInfo($a_info)
Set Info.
static lookupMappingStatus($a_server_id, $a_mid, $a_tree_id)
Lookup mapping status.
dEditTree(ilPropertyFormGUI $form=null)
Edit directory tree assignments.
static getCourseMappingFieldSelectOptions()
static lookupDefaultTitleUpdate($a_server_id, $a_mid, $a_tree_id)
Lookup default title update setting.
cancel()
return to parent container
cShowLocalExplorer()
Show local explorer.
static mappingStatusToString($a_status)
Get mapping status as string.
__construct($settingsContainer, $server_id, $mid)
Constructor.
setValue($a_value)
Set Value.
const TYPE_DIRECTORY_TREES
foreach($_POST as $key=> $value) $res
if(isset($_POST['submit'])) $form
static deleteDisconnectableMappings($a_server_id, $a_mid, $a_tree_id, $a_ref_id)
delete disconnectable mappings
cAddAttribute()
Add one attribute in form.
Storage of course attributes for assignment rules.
cInitOverview($form=null, $current_attribute=null)
Show overview page.
static getAuthModeSelection()
Get auth mode selection.
static _lookupObjId($a_id)
static getInstance($a_server_id, $a_mid)
Get instance.
cSaveOverview()
Save overview.
static deleteMappingsByCsId($a_server_id, $a_mid, $a_tree_id, $cs_ids)
Delete mappings $ilDB.
special template class to simplify handling of ITX/PEAR
static lookupLastExistingAttribute($a_sid, $a_mid, $a_ref_id)
Lookup existing attributes.
This class represents a text property in a property form.
Reads ECS events and stores them in the database.
static lookupAssignmentsByRefId($a_server_id, $a_mid, $a_tree_id, $a_ref_id)
Lookup assignments.
cUpdateSettings()
Update course settings.
dUpdateSettings()
Update node mapping settings.
dInitFormTreeSettings(ilPropertyFormGUI $form=null)
Init form settings.
Create styles array
The data for the language used.
static getInstanceByAttribute($a_sid, $a_mid, $a_ref_id, $a_att)
Get rule instance by attribute type $ilDB.
Class ilExplorer class for explorer view in admin frame.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
cInitMappingForm($current_node, $current_attribute)
Init the mapping form.
dConfirmDeleteTree()
Delete tree settings.
cDeleteAttribute()
Delete last attribute in form.
static lookupCmsId($a_obj_id)
Lookup cms id.
static deleteRessources($a_server_id, $a_mid, $a_econtent_ids)
Delete ressources $ilDB.
This class represents a non editable value in a property form.
static loookupCmsMid($a_server_id)
Lookup mid of current cms participant $ilDB.
dInitEditTree()
Init tree.
Storage of course attributes for assignment rules.
dTrees()
Show directory trees.
if(empty($password)) $table
static lookupMappedItemsForRefId($a_server_id, $a_mid, $a_tree_id, $a_ref_id)
Get cs ids for ref_id <type> $ilDB.
setValue($a_value)
Set Value.
dDeleteTree()
Delete tree.
Confirmation screen class.
setSubTabs($a_tab)
Set Sub tabs ilTabsGUI $ilTabs.