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();
106 $GLOBALS[
'tpl']->setDescription(
'');
116 $GLOBALS[
'ilCtrl']->returnToParent($this);
130 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
144 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
159 $current_node = (
array) (($_REQUEST[
'lnodes']) ? $_REQUEST[
'lnodes'] : ROOT_FOLDER_ID);
160 $current_node = end($current_node);
162 $this->ctrl->setParameter($this,
'lnodes',$current_node);
165 $ilTabs->activateTab(
'ecs_crs_allocation');
166 $ilTabs->activateSubTab(
'cInitTree');
168 $GLOBALS[
'tpl']->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_cmap_overview.html',
'Services/WebServices/ECS');
173 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
174 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
176 if($current_attribute === null)
179 $current_attribute = (
string) $_REQUEST[
'ecs_ca'];
180 if(!$current_attribute)
203 $GLOBALS[
'tpl']->setVariable(
'TFORM_ACTION',$this->ctrl->getFormAction($this));
204 $GLOBALS[
'tpl']->setVariable(
'LOCAL_EXPLORER',$explorer->getOutput());
205 $GLOBALS[
'tpl']->setVariable(
'MAPPING_FORM',$form->getHTML());
213 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
223 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
235 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingLocalExplorer.php';
237 $this->ctrl->getLinkTarget($this,
'cInitOverview'),
243 $lnodes = (
array) $_REQUEST[
'lnodes'];
244 $checked_node = array_pop($lnodes);
245 if((
int) $_REQUEST[
'lid'])
247 $checked_node = (int) $_REQUEST[
'lid'];
252 $explorer->setCheckedItems(
array($checked_node));
256 $explorer->setCheckedItems(
array(ROOT_FOLDER_ID));
258 $explorer->setTargetGet(
'lref_id');
259 $explorer->setSessionExpandVariable(
'lexpand');
260 $explorer->setExpand((
int)
$_GET[
'lexpand']);
261 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'cInitOverview'));
262 $explorer->setOutput(0);
271 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
274 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
276 $form->setTableWidth(
"100%");
277 $this->ctrl->setParameter($this,
'ecs_ca',$current_attribute);
278 $form->setFormAction($this->ctrl->getFormAction($this));
279 $this->ctrl->setParameter($this,
'ecs_ca',
'');
284 $attributes = $attributes_obj->getAttributeSequence($current_attribute);
285 foreach($attributes as $att_name)
287 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
291 $section->setTitle($this->lng->txt(
'ecs_cmap_att_'.$att_name));
296 $isfilter =
new ilRadioGroupInputGUI($this->lng->txt(
'ecs_cmap_form_filter'),$att_name.
'_is_filter');
297 $isfilter->setValue($rule->isFilterEnabled() ? 1 : 0);
299 $all_values =
new ilRadioOption($this->lng->txt(
'ecs_cmap_form_all_values'),0);
300 $isfilter->addOption($all_values);
302 $use_filter =
new ilRadioOption($this->lng->txt(
'ecs_cmap_form_filter_by_values'),1);
304 $filter->
setInfo($this->lng->txt(
'ecs_cmap_form_filter_info'));
305 $filter->setSize(50);
306 $filter->setMaxLength(512);
307 $filter->setRequired(
true);
308 $filter->
setValue($rule->getFilter());
309 $use_filter->addSubItem($filter);
311 $isfilter->addOption($use_filter);
313 $form->addItem($isfilter);
316 $subdirs =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_form_create_subdirs'),$att_name.
'_subdirs');
317 $subdirs->setChecked($rule->isSubdirCreationEnabled());
318 $subdirs->setValue(1);
333 $form->addItem($subdirs);
363 $hidden_atts->setValue(implode(
',',$attributes));
364 $form->addItem($hidden_atts);
367 if($current_attribute)
369 $form->addCommandButton(
'cSaveOverview',$this->lng->txt(
'save'));
372 if($attributes_obj->getNextAttributeName($current_attribute))
374 $form->addCommandButton(
'cAddAttribute', $this->lng->txt(
'ecs_cmap_add_attribute_btn'));
376 if($attributes_obj->getPreviousAttributeName($current_attribute))
378 $form->addCommandButton(
'cDeleteAttribute', $this->lng->txt(
'ecs_cmap_delete_attribute_btn'));
386 $form->addCommandButton(
'cDeleteRulesOfNode', $this->lng->txt(
'ecs_cmap_delete_rule'));
389 #$form->addCommandButton('cInitOverview', $this->lng->txt('cancel')); 391 $form->setShowTopButtons(
false);
401 $current_node = (int) $_REQUEST[
'lnodes'];
402 $current_att = (
string) $_REQUEST[
'ecs_ca'];
405 if($form->checkInput())
408 $all_attributes = explode(
',',$form->getInput(
'attributes'));
409 foreach((
array) $all_attributes as $att_name)
416 $rule->setServerId($this->
getServer()->getServerId());
417 $rule->setMid($this->
getMid());
418 $rule->setRefId($current_node);
419 $rule->setAttribute($att_name);
420 $rule->enableFilter($form->getInput($att_name.
'_is_filter'));
421 $rule->setFilter($form->getInput($att_name.
'_filter'));
422 $rule->enableSubdirCreation($form->getInput($att_name.
'_subdirs'));
426 if($rule->getRuleId())
437 $this->ctrl->setParameter($this,
'lnodes',$current_node);
438 $this->ctrl->redirect($this,
'cInitOverview');
441 $form->setValuesByPost();
448 $current_node = (int) $_REQUEST[
'lnodes'];
450 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseMappingRule.php';
456 foreach($rules as $rid)
462 $this->ctrl->redirect($this,
'cInitOverview');
478 $ilTabs->activateTab(
'ecs_crs_allocation');
479 $ilTabs->activateSubTab(
'cSettings');
486 $GLOBALS[
'tpl']->setContent($form->getHTML());
496 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
498 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
500 $form->setFormAction($this->ctrl->getFormAction($this));
501 $form->setTitle($this->lng->txt(
'settings'));
506 $form->addItem($check);
510 $imp =
new ilCustomInputGUI($this->lng->txt(
'ecs_cmap_def_cat'),
'default_cat');
513 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'Services/WebServices/ECS');
514 $tpl->setVariable(
'SIZE',5);
515 $tpl->setVariable(
'MAXLENGTH',11);
516 $tpl->setVariable(
'POST_VAR',
'default_cat');
519 $tpl->setVariable(
'PROPERTY_VALUE',$default);
523 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
525 $path->enableTextOnly(
false);
526 $path->enableHideLeaf(
false);
527 $tpl->setVariable(
'COMPLETE_PATH',
$path->getPath(ROOT_FOLDER_ID, $default));
530 $imp->setHtml(
$tpl->get());
531 $imp->setInfo($this->lng->txt(
'ecs_cmap_def_cat_info'));
532 $form->addItem($imp);
535 $allinone =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_all_in_one'),
'allinone');
537 $allinone->setInfo($this->lng->txt(
'ecs_cmap_all_in_one_info'));
539 $allinone_cat =
new ilCustomInputGUI($this->lng->txt(
'ecs_cmap_all_in_one_cat'),
'allinone_cat');
542 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'Services/WebServices/ECS');
543 $tpl->setVariable(
'SIZE',5);
544 $tpl->setVariable(
'MAXLENGTH',11);
545 $tpl->setVariable(
'POST_VAR',
'allinone_cat');
548 $tpl->setVariable(
'PROPERTY_VALUE',$cat);
551 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
553 $path->enableTextOnly(
false);
554 $path->enableHideLeaf(
false);
555 $tpl->setVariable(
'COMPLETE_PATH',
$path->getPath(ROOT_FOLDER_ID, $default));
558 $allinone_cat->setHtml(
$tpl->get());
559 $allinone->addSubItem($allinone_cat);
560 $form->addItem($allinone);
563 $multiple =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_cmap_multiple_atts'),
'multiple');
567 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
568 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
569 $attributes =
new ilSelectInputGUI($this->lng->txt(
'ecs_cmap_attributes'),
'atts');
571 $attributes->setValue(
575 )->getAttributeValues());
576 $attributes->setRequired(
true);
578 $multiple->addSubItem($attributes);
580 $form->addItem($multiple);
584 $rm->setTitle($this->lng->txt(
'ecs_role_mappings'));
588 $auth_type =
new ilSelectInputGUI($this->lng->txt(
'ecs_member_auth_type'),
'auth_mode');
590 $auth_type->setRequired(
true);
592 $form->addItem($auth_type);
596 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
600 $role_map->
setValue($mapping_defs[$name]);
601 $role_map->setSize(32);
602 $role_map->setMaxLength(64);
603 $role_map->setRequired(
$info[
'required']);
604 $form->addItem($role_map);
607 $form->addCommandButton(
'cUpdateSettings',$this->lng->txt(
'save'));
608 $form->addCommandButton(
'cSettings', $this->lng->txt(
'cancel'));
621 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
623 $ilTabs->activateTab(
'ecs_dir_allocation');
624 $ilTabs->activateSubTab(
'dSettings');
626 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
632 $GLOBALS[
'tpl']->setContent($form->getHTML());
643 if($form->checkInput())
645 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
647 $settings->enableCourseAllocation($form->getInput(
'enabled'));
648 $settings->setDefaultCourseCategory($form->getInput(
'default_cat'));
649 $settings->enableAllInOne($form->getInput(
'allinone'));
650 $settings->setAllInOneCategory($form->getInput(
'allinone_cat'));
651 $settings->enableAttributeMapping($form->getInput(
'multiple'));
652 $settings->setAuthMode($form->getInput(
'auth_mode'));
655 $role_mappings =
array();
658 $role_mappings[$name] = $form->getInput($name);
660 $settings->setRoleMappings($role_mappings);
664 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
666 $attributes->delete();
668 $form_atts = $form->getInput(
'atts');
670 foreach($form_atts as $name)
678 $att->setServerId($this->
getServer()->getServerId());
679 $att->setMid($this->
getMid());
680 $att->setName($name);
688 $GLOBALS[
'ilCtrl']->redirect($this,
'cSettings');
691 $form->setValuesByPost();
704 $ilTabs->setTabActive(
'ecs_crs_allocation');
705 $ilTabs->setSubTabActive(
'cAttributes');
707 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributesTableGUI.php';
708 $table =
new ilECSCourseAttributesTableGUI(
718 $this->
getMid())->getAttributes());
720 $GLOBALS[
'tpl']->setContent($table->getHTML());
733 if($form->checkInput())
735 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
737 $settings->enableDirectoryMapping((
bool) $form->getInput(
'active'));
738 $settings->enableEmptyContainerCreation(!$form->getInput(
'empty'));
745 $form->setValuesByPost();
747 $ilCtrl->redirect($this,
'dSettings');
755 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
756 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
759 $form->setFormAction($this->ctrl->getFormAction($this));
760 $form->setTitle($this->lng->txt(
'general_settings'));
762 $active =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_node_mapping_activate'),
'active');
764 $form->addItem($active);
766 $create_empty =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_node_mapping_create_empty'),
'empty');
768 $create_empty->setInfo($this->lng->txt(
'ecs_node_mapping_create_empty_info'));
769 $form->addItem($create_empty);
771 $form->addCommandButton(
'dUpdateSettings',$this->lng->txt(
'save'));
772 $form->addCommandButton(
'cancel', $this->lng->txt(
'cancel'));
785 $GLOBALS[
'ilTabs']->activateSubTab(
'dTrees');
786 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
788 $ilToolbar->addButton(
789 $this->lng->txt(
'ecs_sync_trees'),
790 $this->ctrl->getLinkTarget($this,
'dSynchronizeTrees'));
792 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingTreeTableGUI.php';
801 $dtreeTable->parse();
802 $GLOBALS[
'tpl']->setContent($dtreeTable->getHTML());
812 $GLOBALS[
'ilTabs']->activateSubTab(
'dTrees');
813 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
815 include_once
'./Services/Utilities/classes/class.ilConfirmationGUI.php';
816 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
819 $confirm->setFormAction($this->ctrl->getFormAction($this));
820 $confirm->setHeaderText($this->lng->txt(
'ecs_confirm_delete_tree'));
824 (
int) $_REQUEST[
'tid'],
828 (
int) $_REQUEST[
'tid']
831 $confirm->setConfirm($this->lng->txt(
'delete'),
'dDeleteTree');
832 $confirm->setCancel($this->lng->txt(
'cancel'),
'dTrees');
834 $GLOBALS[
'tpl']->setContent($confirm->getHTML());
842 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
843 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
845 $GLOBALS[
'ilLog']->write(
'Deleting tree');
853 include_once
'./Services/WebServices/ECS/classes/class.ilECSImport.php';
860 (
int) $_REQUEST[
'tid']
867 $data->setTreeId((
int) $_REQUEST[
'tid']);
871 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
875 (
int) $_REQUEST[
'tid']
879 $this->ctrl->redirect($this,
'dTrees');
887 $GLOBALS[
'tpl']->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_edit_tree.html',
'Services/WebServices/ECS');
889 $this->ctrl->saveParameter($this,
'cid');
893 $this->lng->txt(
'ecs_back_settings'),
894 $this->ctrl->getLinkTarget($this,
'cancel')
897 $this->lng->txt(
'ecs_cms_dir_tree'),
898 $this->ctrl->getLinkTarget($this,
'dTrees')
901 $GLOBALS[
'tpl']->setVariable(
'LEGEND',
$GLOBALS[
'lng']->txt(
'ecs_status_legend'));
902 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped'));
903 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED_DISCON',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped_discon'));
904 $GLOBALS[
'tpl']->setVariable(
'PENDING_UNMAPPED_NONDISCON',
$GLOBALS[
'lng']->txt(
'ecs_status_pending_unmapped_nondiscon'));
905 $GLOBALS[
'tpl']->setVariable(
'MAPPED',
$GLOBALS[
'lng']->txt(
'ecs_status_mapped'));
906 $GLOBALS[
'tpl']->setVariable(
'DELETED',
$GLOBALS[
'lng']->txt(
'ecs_status_deleted'));
909 $GLOBALS[
'tpl']->setVariable(
'GENERAL_FORM',$form->getHTML());
910 $GLOBALS[
'tpl']->setVariable(
'TFORM_ACTION',$this->ctrl->getFormAction($this,
'dEditTree'));
921 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSMappingUtils.php';
922 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
929 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
933 (
int) $_REQUEST[
'tid'],
937 include_once
'./Services/Form/classes/class.ilPropertyFormGUI.php';
938 $form =
new ilPropertyFormGUI();
939 $form->setFormAction($this->ctrl->getFormAction($this,
'dEditTree'));
940 $form->setTitle($this->lng->txt(
'general_settings'));
941 $form->addCommandButton(
'dUpdateTreeSettings', $this->lng->txt(
'save'));
942 $form->addCommandButton(
'dTrees', $this->lng->txt(
'cancel'));
943 $form->setTableWidth(
'30%');
946 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
951 $cmsid->setDisabled(
true);
953 $cmsid->setMaxLength(12);
954 $form->addItem($cmsid);
960 (
int) $_REQUEST[
'tid']);
966 $form->addItem($status);
971 $title->setChecked($assignment->isTitleUpdateEnabled());
972 #$title->setInfo($this->lng->txt('ecs_title_update_info')); 976 $position =
new ilCheckboxInputGUI($this->lng->txt(
'ecs_position_updates'),
'position');
978 $position->setChecked($mapping_advanced && $assignment->isPositionUpdateEnabled());
979 $position->setValue(1);
980 #$position->setInfo($this->lng->txt('ecs_position_update_info')); 981 $form->addItem($position);
985 $tree->setChecked($mapping_advanced && $assignment->isTreeUpdateEnabled());
987 #$tree->setInfo($this->lng->txt('ecs_tree_update_info')); 988 $form->addItem($tree);
999 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
1000 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1004 (
int) $_REQUEST[
'tid'],
1007 $assignment->setRefId(0);
1008 $assignment->setObjId(0);
1011 if($form->checkInput())
1013 $assignment->enableTitleUpdate($form->getInput(
'title'));
1014 $assignment->enableTreeUpdate($form->getInput(
'tree'));
1015 $assignment->enablePositionUpdate($form->getInput(
'position'));
1016 $assignment->update();
1019 $this->ctrl->redirect($this,
'dEditTree');
1022 $form->setValuesByPost();
1033 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTreeSynchronizer.php';
1037 (
int) $_REQUEST[
'tid']
1041 $this->ctrl->redirect($this,
'dTrees');
1046 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSDirectoryTreeConnector.php';
1048 $this->log->dump(
'Start synchronizing cms directory trees');
1053 $res = $connector->getDirectoryTrees();
1057 foreach((
array)
$res->getLinkIds() as $cms_id)
1059 include_once
'./Services/WebServices/ECS/classes/class.ilECSEventQueueReader.php';
1060 include_once
'./Services/WebServices/ECS/classes/class.ilECSEvent.php';
1068 $this->ctrl->redirect($this,
'dTrees');
1073 $this->ctrl->redirect($this,
'dTrees');
1084 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingLocalExplorer.php';
1086 $this->ctrl->getLinkTarget($this,
'dEditTree'),
1092 $lnodes = (
array) $_REQUEST[
'lnodes'];
1093 $checked_node = array_pop($lnodes);
1094 if((
int) $_REQUEST[
'lid'])
1096 $checked_node = (int) $_REQUEST[
'lid'];
1101 $explorer->setCheckedItems(
array($checked_node));
1105 $explorer->setCheckedItems(
array(ROOT_FOLDER_ID));
1107 $explorer->setTargetGet(
'lref_id');
1108 $explorer->setSessionExpandVariable(
'lexpand');
1109 $explorer->setExpand((
int)
$_GET[
'lexpand']);
1110 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'dEditTree'));
1111 $explorer->setOutput(0);
1112 $GLOBALS[
'tpl']->setVariable(
'LOCAL_EXPLORER',$explorer->getOutput());
1124 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1125 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingCmsExplorer.php';
1126 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1129 $this->ctrl->getLinkTarget($this,
'dEditTree'),
1132 (int) $_REQUEST[
'tid']
1137 (
int) $_REQUEST[
'tid']
1140 $explorer->setPostVar(
'rnodes[]');
1143 $active_node = $tree->getRootId();
1144 foreach($localExplorer->getCheckedItems() as
$ref_id)
1146 $explorer->setCheckedItems(
1150 (
int) $_REQUEST[
'tid'],
1158 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1159 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1164 (
int) $_REQUEST[
'tid'],
1168 foreach($cmsTree->getPathId($cs_id) as $path_id)
1170 #$explorer->setExpand($path_id); 1174 $explorer->setTargetGet(
'rref_id');
1175 $explorer->setSessionExpandVariable(
'rexpand');
1177 #if((int) $_REQUEST['rexpand']) 1179 $explorer->setExpand((
int)
$_GET[
'rexpand']);
1181 $explorer->setExpandTarget($this->ctrl->getLinkTarget($this,
'dEditTree'));
1182 $explorer->setOutput(0);
1183 $GLOBALS[
'tpl']->setVariable(
'REMOTE_EXPLORER',$explorer->getOutput());
1193 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php';
1197 (
int) $_REQUEST[
'tid']
1211 $this->ctrl->redirect($this,
'dEditTree');
1216 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1220 (
int) $_REQUEST[
'tid'],
1226 $nodes = (
array) array_reverse($nodes);
1228 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignment.php';
1229 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingAssignments.php';
1230 include_once
'./Services/WebServices/ECS/classes/Tree/class.ilECSCmsTree.php';
1231 foreach($nodes as $cms_id)
1236 (
int) $_REQUEST[
'tid'],
1239 $assignment->setRefId(
$ref_id);
1241 $assignment->enablePositionUpdate(
false);
1242 $assignment->enableTreeUpdate(
false);
1246 (
int) $_REQUEST[
'tid']
1248 $assignment->update();
1252 $childs = $cmsTree->getSubTreeIds($cms_id);
1257 (
int) $_REQUEST[
'tid'],
1266 (
int) $_REQUEST[
'tid']
1270 $this->ctrl->setParameter($this,
'lid',(
int)
$ref_id);
1273 $this->ctrl->redirect($this,
'dEditTree');
1282 $GLOBALS[
'ilTabs']->activateSubTab(
'dMappingOverview');
1283 $GLOBALS[
'ilTabs']->activateTab(
'ecs_dir_allocation');
1296 include_once
'./Services/WebServices/ECS/classes/class.ilECSParticipantSettings.php';
1298 $ilTabs->clearTargets();
1299 $ilTabs->setBackTarget(
1300 $this->lng->txt(
'ecs_back_settings'),
1301 $this->ctrl->getParentReturn($this)
1307 'ecs_dir_allocation',
1308 $this->lng->txt(
'ecs_dir_alloc'),
1309 $this->ctrl->getLinkTarget($this,
'dSettings')
1314 'ecs_crs_allocation',
1315 $this->lng->txt(
'ecs_crs_alloc'),
1316 $this->ctrl->getLinkTarget($this,
'cStart')
1329 if($a_tab == self::TAB_DIRECTORY)
1333 $this->lng->txt(
'ecs_cc_mapping_overview'),
1334 $this->ctrl->getLinkTarget($this,
'dMappingOverview')
1338 $this->lng->txt(
'ecs_cms_dir_tree'),
1339 $this->ctrl->getLinkTarget($this,
'dTrees')
1343 $this->lng->txt(
'settings'),
1344 $this->ctrl->getLinkTarget($this,
'dSettings')
1347 if($a_tab == self::TAB_COURSE)
1350 include_once
'./Services/WebServices/ECS/classes/Course/class.ilECSCourseAttributes.php';
1353 include_once
'./Services/WebServices/ECS/classes/Mapping/class.ilECSNodeMappingSettings.php';
1358 $this->lng->txt(
'ecs_cmap_overview'),
1359 $this->ctrl->getLinkTarget($this,
'cInitOverview')
1365 $this->lng->txt(
'settings'),
1366 $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.
getContainer()
Get container object.
cSettings(ilPropertyFormGUI $form=NULL)
Show course allocation ilTabsGUI $ilTabs.
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.
static getInstanceByServerMid($a_server_id, $a_mid)
Get instance.
static _lookupTitle($a_id)
lookup object title
Add rich text string
The name of the decorator.
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
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.
dSettings(ilPropertyFormGUI $form=NULL)
Show directory allocation ilTabsGUI $ilTabs.
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.
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.