19 declare(strict_types=1);
51 $this->
lng = $DIC->language();
52 $this->
ctrl = $DIC->ctrl();
53 $this->tpl = $DIC->ui()->mainTemplate();
54 $this->log = $DIC->logger()->wsrv();
55 $this->
tabs = $DIC->tabs();
56 $this->
toolbar = $DIC->toolbar();
58 $this->container = $settingsContainer;
61 $this->
lng->loadLanguageModule(
'ecs');
91 $this->tpl->setTitle($this->
lng->txt(
'ecs_campus_connect_title'));
93 $this->
ctrl->saveParameter($this,
'server_id');
94 $this->
ctrl->saveParameter($this,
'mid');
95 $this->
ctrl->saveParameter($this,
'tid');
97 $next_class = $this->
ctrl->getNextClass($this);
98 $cmd = $this->
ctrl->getCmd();
107 $this->tpl->setDescription(
'');
115 $this->
ctrl->returnToParent($this);
131 )->isCourseAllocationEnabled()) {
155 $current_node = (array) (($_REQUEST[
'lnodes']) ?:
ROOT_FOLDER_ID);
157 $current_node = (
int) end($current_node);
159 $this->
ctrl->setParameter($this,
'lnodes', $current_node);
162 $this->
tabs->activateTab(
'ecs_crs_allocation');
163 $this->
tabs->activateSubTab(
'cInitTree');
165 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_cmap_overview.html',
'components/ILIAS/WebServices/ECS');
169 if ($current_attribute ===
null) {
171 $current_attribute = (string) $_REQUEST[
'ecs_ca'];
172 if (!$current_attribute) {
193 $this->tpl->setVariable(
'TFORM_ACTION', $this->
ctrl->getFormAction($this));
194 $this->tpl->setVariable(
'LOCAL_EXPLORER', $explorer->getOutput());
195 $this->tpl->setVariable(
'MAPPING_FORM', $form->getHTML());
222 $this->
ctrl->getLinkTarget($this,
'cInitOverview'),
228 $lnodes = (array) $_REQUEST[
'lnodes'];
229 $checked_node = (
int) array_pop($lnodes);
230 if ((
int) $_REQUEST[
'lid']) {
231 $checked_node = (
int) $_REQUEST[
'lid'];
235 $explorer->setCheckedItems(array($checked_node));
239 $explorer->setTargetGet(
'lref_id');
240 $explorer->setSessionExpandVariable(
'lexpand');
241 $explorer->setExpand((
int)
$_GET[
'lexpand']);
242 $explorer->setExpandTarget($this->
ctrl->getLinkTarget($this,
'cInitOverview'));
243 $explorer->setOutput(0);
255 $form->setTableWidth(
"100%");
256 $this->
ctrl->setParameter($this,
'ecs_ca', $current_attribute);
257 $form->setFormAction($this->
ctrl->getFormAction($this));
258 $this->
ctrl->setParameter($this,
'ecs_ca',
'');
263 $attributes = $attributes_obj->getAttributeSequence($current_attribute);
264 foreach ($attributes as $att_name) {
268 $section->setTitle($this->
lng->txt(
'ecs_cmap_att_' . $att_name));
271 $form->addItem($section);
274 $isfilter->
setValue($rule->isFilterEnabled() ?
"1" :
"0");
276 $all_values =
new ilRadioOption($this->
lng->txt(
'ecs_cmap_form_all_values'),
"0");
277 $isfilter->addOption($all_values);
279 $use_filter =
new ilRadioOption($this->
lng->txt(
'ecs_cmap_form_filter_by_values'),
"1");
281 $filter->
setInfo($this->
lng->txt(
'ecs_cmap_form_filter_info'));
282 $filter->setSize(50);
283 $filter->setMaxLength(512);
284 $filter->setRequired(
true);
285 $filter->
setValue($rule->getFilter());
286 $use_filter->addSubItem($filter);
288 $isfilter->addOption($use_filter);
290 $form->addItem($isfilter);
293 $subdirs =
new ilCheckboxInputGUI($this->
lng->txt(
'ecs_cmap_form_create_subdirs'), $att_name .
'_subdirs');
294 $subdirs->setChecked($rule->isSubdirCreationEnabled());
295 $subdirs->setValue(
"1");
310 $form->addItem($subdirs);
340 $hidden_atts->setValue(implode(
',', $attributes));
341 $form->addItem($hidden_atts);
344 if ($current_attribute) {
345 $form->addCommandButton(
'cSaveOverview', $this->
lng->txt(
'save'));
348 if ($attributes_obj->getNextAttributeName($current_attribute)) {
349 $form->addCommandButton(
'cAddAttribute', $this->
lng->txt(
'ecs_cmap_add_attribute_btn'));
351 if ($attributes_obj->getPreviousAttributeName($current_attribute)) {
352 $form->addCommandButton(
'cDeleteAttribute', $this->
lng->txt(
'ecs_cmap_delete_attribute_btn'));
359 $form->addCommandButton(
'cDeleteRulesOfNode', $this->
lng->txt(
'ecs_cmap_delete_rule'));
362 #$form->addCommandButton('cInitOverview', $this->lng->txt('cancel')); 364 $form->setShowTopButtons(
false);
374 $current_node = (
int) $_REQUEST[
'lnodes'];
375 $current_att = (string) $_REQUEST[
'ecs_ca'];
378 if ($form->checkInput()) {
380 $all_attributes = explode(
',', $form->getInput(
'attributes'));
381 foreach ((array) $all_attributes as $att_name) {
388 $rule->setServerId($this->
getServer()->getServerId());
389 $rule->setMid($this->
getMid());
390 $rule->setRefId($current_node);
391 $rule->setAttribute($att_name);
392 $rule->enableFilter((
bool) $form->getInput($att_name .
'_is_filter'));
393 $rule->setFilter($form->getInput($att_name .
'_filter'));
394 $rule->enableSubdirCreation((
bool) $form->getInput($att_name .
'_subdirs'));
398 if ($rule->getRuleId()) {
405 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'),
true);
406 $this->
ctrl->setParameter($this,
'lnodes', $current_node);
407 $this->
ctrl->redirect($this,
'cInitOverview');
410 $form->setValuesByPost();
411 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'));
417 $current_node = (
int) $_REQUEST[
'lnodes'];
425 foreach ($rules as $rid) {
429 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'),
true);
430 $this->
ctrl->redirect($this,
'cInitOverview');
442 $this->
tabs->activateTab(
'ecs_crs_allocation');
443 $this->
tabs->activateSubTab(
'cSettings');
449 $this->tpl->setContent($form->getHTML());
460 $form->setFormAction($this->
ctrl->getFormAction($this));
461 $form->setTitle($this->
lng->txt(
'settings'));
471 $imp->setRequired(
true);
473 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'components/ILIAS/WebServices/ECS');
483 $path->enableTextOnly(
false);
484 $path->enableHideLeaf(
false);
488 $imp->setHtml($tpl->
get());
489 $imp->setInfo($this->
lng->txt(
'ecs_cmap_def_cat_info'));
490 $form->addItem($imp);
495 $allinone->setInfo($this->
lng->txt(
'ecs_cmap_all_in_one_info'));
497 $allinone_cat =
new ilCustomInputGUI($this->
lng->txt(
'ecs_cmap_all_in_one_cat'),
'allinone_cat');
498 $allinone_cat->setRequired(
true);
500 $tpl =
new ilTemplate(
'tpl.ecs_import_id_form.html',
true,
true,
'components/ILIAS/WebServices/ECS');
509 $path->enableTextOnly(
false);
510 $path->enableHideLeaf(
false);
514 $allinone_cat->setHtml($tpl->
get());
515 $allinone->addSubItem($allinone_cat);
516 $form->addItem($allinone);
525 $attributes->setValue(
529 )->getAttributeValues()
531 $attributes->setRequired(
true);
533 $multiple->addSubItem($attributes);
535 $form->addItem($multiple);
539 $rm->setTitle($this->
lng->txt(
'ecs_role_mappings'));
545 $auth_type->setRequired(
true);
547 $form->addItem($auth_type);
553 if (isset($mapping_defs[$name])) {
554 $role_map->setValue($mapping_defs[$name]);
556 $role_map->setSize(32);
557 $role_map->setMaxLength(64);
558 $role_map->setRequired($info[
'required']);
559 $form->addItem($role_map);
562 $form->addCommandButton(
'cUpdateSettings', $this->
lng->txt(
'save'));
563 $form->addCommandButton(
'cSettings', $this->
lng->txt(
'cancel'));
574 $this->
tabs->activateTab(
'ecs_dir_allocation');
575 $this->
tabs->activateSubTab(
'dSettings');
581 $this->tpl->setContent($form->getHTML());
592 if ($form->checkInput()) {
594 $settings->enableCourseAllocation((
bool) $form->getInput(
'enabled'));
595 $settings->setDefaultCourseCategory((
int) $form->getInput(
'default_cat'));
596 $settings->enableAllInOne((
bool) $form->getInput(
'allinone'));
597 $settings->setAllInOneCategory((
int) $form->getInput(
'allinone_cat'));
598 $settings->enableAttributeMapping((
bool) $form->getInput(
'multiple'));
599 $settings->setAuthMode($form->getInput(
'auth_mode'));
603 $role_mappings[$role] = $form->getInput((
string) $role);
605 $settings->setRoleMappings($role_mappings);
610 $attributes->delete();
612 $form_atts = $form->getInput(
'atts');
614 foreach ($form_atts as $name) {
620 $att->setServerId($this->
getServer()->getServerId());
621 $att->setMid($this->
getMid());
622 $att->setName($name);
629 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'),
true);
630 $this->
ctrl->redirect($this,
'cSettings');
632 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'));
633 $form->setValuesByPost();
643 if ($form->checkInput()) {
645 $settings->enableDirectoryMapping((
bool) $form->getInput(
'active'));
646 $settings->enableEmptyContainerCreation(!$form->getInput(
'empty'));
648 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'),
true);
650 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'),
true);
651 $form->setValuesByPost();
653 $this->
ctrl->redirect($this,
'dSettings');
662 $form->setFormAction($this->
ctrl->getFormAction($this));
663 $form->setTitle($this->
lng->txt(
'general_settings'));
667 $form->addItem($active);
671 $create_empty->setInfo($this->
lng->txt(
'ecs_node_mapping_create_empty_info'));
672 $form->addItem($create_empty);
674 $form->addCommandButton(
'dUpdateSettings', $this->
lng->txt(
'save'));
675 $form->addCommandButton(
'cancel', $this->
lng->txt(
'cancel'));
686 $this->
tabs->activateSubTab(
'dTrees');
687 $this->
tabs->activateTab(
'ecs_dir_allocation');
690 $this->
lng->txt(
'ecs_sync_trees'),
691 $this->
ctrl->getLinkTarget($this,
'dSynchronizeTrees')
702 $dtreeTable->parse();
703 $this->tpl->setContent($dtreeTable->getHTML());
713 $this->
tabs->activateSubTab(
'dTrees');
714 $this->
tabs->activateTab(
'ecs_dir_allocation');
717 $confirm->setFormAction($this->
ctrl->getFormAction($this));
718 $confirm->setHeaderText($this->
lng->txt(
'ecs_confirm_delete_tree'));
726 (
int) $_REQUEST[
'tid']
729 $confirm->setConfirm($this->
lng->txt(
'delete'),
'dDeleteTree');
730 $confirm->setCancel($this->
lng->txt(
'cancel'),
'dTrees');
732 $this->tpl->setContent($confirm->getHTML());
740 $this->log->info(
'Deleting tree');
754 (
int) $_REQUEST[
'tid']
761 $data->setTreeId((
int) $_REQUEST[
'tid']);
767 (
int) $_REQUEST[
'tid']
770 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'ecs_cms_tree_deleted'),
true);
771 $this->
ctrl->redirect($this,
'dTrees');
779 $this->tpl->addBlockFile(
'ADM_CONTENT',
'adm_content',
'tpl.ecs_edit_tree.html',
'components/ILIAS/WebServices/ECS');
781 $this->
ctrl->saveParameter($this,
'cid');
783 $this->
tabs->clearTargets();
784 $this->
tabs->setBack2Target(
785 $this->
lng->txt(
'ecs_back_settings'),
786 $this->
ctrl->getLinkTarget($this,
'cancel')
788 $this->
tabs->setBackTarget(
789 $this->
lng->txt(
'ecs_cms_dir_tree'),
790 $this->
ctrl->getLinkTarget($this,
'dTrees')
793 $this->tpl->setVariable(
'LEGEND', $this->
lng->txt(
'ecs_status_legend'));
794 $this->tpl->setVariable(
'PENDING_UNMAPPED', $this->
lng->txt(
'ecs_status_pending_unmapped'));
795 $this->tpl->setVariable(
'PENDING_UNMAPPED_DISCON', $this->
lng->txt(
'ecs_status_pending_unmapped_discon'));
796 $this->tpl->setVariable(
'PENDING_UNMAPPED_NONDISCON', $this->
lng->txt(
'ecs_status_pending_unmapped_nondiscon'));
797 $this->tpl->setVariable(
'MAPPED', $this->
lng->txt(
'ecs_status_mapped'));
798 $this->tpl->setVariable(
'DELETED', $this->
lng->txt(
'ecs_status_deleted'));
801 $this->tpl->setVariable(
'GENERAL_FORM', $form->getHTML());
802 $this->tpl->setVariable(
'TFORM_ACTION', $this->
ctrl->getFormAction($this,
'dEditTree'));
820 (
int) $_REQUEST[
'tid'],
824 $form =
new ilPropertyFormGUI();
825 $form->setFormAction($this->
ctrl->getFormAction($this,
'dEditTree'));
826 $form->setTitle($this->
lng->txt(
'general_settings'));
827 $form->addCommandButton(
'dUpdateTreeSettings', $this->
lng->txt(
'save'));
828 $form->addCommandButton(
'dTrees', $this->
lng->txt(
'cancel'));
829 $form->setTableWidth(
'30%');
836 $cmsid->setDisabled(
true);
838 $cmsid->setMaxLength(12);
839 $form->addItem($cmsid);
845 (
int) $_REQUEST[
'tid']
852 $form->addItem($status);
856 $title->setValue(
"1");
857 $title->setChecked($assignment->isTitleUpdateEnabled());
858 #$title->setInfo($this->lng->txt('ecs_title_update_info')); 859 $form->addItem($title);
863 $position->setDisabled(!$mapping_advanced);
864 $position->setChecked($mapping_advanced && $assignment->isPositionUpdateEnabled());
865 $position->setValue(
"1");
866 #$position->setInfo($this->lng->txt('ecs_position_update_info')); 867 $form->addItem($position);
870 $tree->setDisabled(!$mapping_advanced);
871 $tree->setChecked($mapping_advanced && $assignment->isTreeUpdateEnabled());
872 $tree->setValue(
"1");
873 #$tree->setInfo($this->lng->txt('ecs_tree_update_info')); 874 $form->addItem($tree);
888 (
int) $_REQUEST[
'tid'],
891 $assignment->setRefId(0);
892 $assignment->setObjId(0);
895 if ($form->checkInput()) {
896 $assignment->enableTitleUpdate($form->getInput(
'title'));
897 $assignment->enableTreeUpdate($form->getInput(
'tree'));
898 $assignment->enablePositionUpdate($form->getInput(
'position'));
899 $assignment->update();
901 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved',
"1"));
902 $this->
ctrl->redirect($this,
'dEditTree');
905 $form->setValuesByPost();
906 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'));
919 (
int) $_REQUEST[
'tid']
922 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'ecs_cms_tree_synchronized'),
true);
923 $this->
ctrl->redirect($this,
'dTrees');
928 $this->log->dump(
'Start synchronizing cms directory trees');
932 $res = $connector->getDirectoryTrees();
936 foreach (
$res->getLinkIds() as $cms_id) {
944 $this->
ctrl->redirect($this,
'dTrees');
946 $this->tpl->setOnScreenMessage(
'failure', $e->getMessage(),
true);
947 $this->
ctrl->redirect($this,
'dTrees');
957 $this->
ctrl->getLinkTarget($this,
'dEditTree'),
963 $lnodes = (array) $_REQUEST[
'lnodes'];
964 $checked_node = array_pop($lnodes);
965 if ((
int) $_REQUEST[
'lid']) {
966 $checked_node = (
int) $_REQUEST[
'lid'];
970 $explorer->setCheckedItems(array($checked_node));
974 $explorer->setTargetGet(
'lref_id');
975 $explorer->setSessionExpandVariable(
'lexpand');
976 $explorer->setExpand((
int)
$_GET[
'lexpand']);
977 $explorer->setExpandTarget($this->
ctrl->getLinkTarget($this,
'dEditTree'));
978 $explorer->setOutput(0);
979 $this->tpl->setVariable(
'LOCAL_EXPLORER', $explorer->getOutput());
990 $this->
ctrl->getLinkTarget($this,
'dEditTree'),
993 (
int) $_REQUEST[
'tid']
998 (
int) $_REQUEST[
'tid']
1001 $explorer->setPostVar(
'rnodes[]');
1005 foreach ($localExplorer->getCheckedItems() as
$ref_id) {
1006 $explorer->setCheckedItems(
1010 (
int) $_REQUEST[
'tid'],
1029 $explorer->setTargetGet(
'rref_id');
1030 $explorer->setSessionExpandVariable(
'rexpand');
1032 #if((int) $_REQUEST['rexpand']) 1034 $explorer->setExpand((
int)
$_GET[
'rexpand']);
1036 $explorer->setExpandTarget($this->
ctrl->getLinkTarget($this,
'dEditTree'));
1037 $explorer->setOutput(0);
1038 $this->tpl->setVariable(
'REMOTE_EXPLORER', $explorer->getOutput());
1049 (
int) $_REQUEST[
'tid']
1060 if (!$_POST[
'lnodes']) {
1061 $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'select_one'),
true);
1062 $this->
ctrl->redirect($this,
'dEditTree');
1065 $ref_id = end($_POST[
'lnodes']);
1070 (
int) $_REQUEST[
'tid'],
1075 $nodes = (array) $_POST[
'rnodes'];
1076 $nodes = array_reverse($nodes);
1078 foreach ($nodes as $cms_id) {
1082 (
int) $_REQUEST[
'tid'],
1085 $assignment->setRefId(
$ref_id);
1087 $assignment->enablePositionUpdate(
false);
1088 $assignment->enableTreeUpdate(
false);
1092 (
int) $_REQUEST[
'tid']
1094 $assignment->update();
1098 $childs = $cmsTree->getSubTreeIds($cms_id);
1103 (
int) $_REQUEST[
'tid'],
1111 (
int) $_REQUEST[
'tid']
1115 $this->
ctrl->setParameter($this,
'lid', (
int)
$ref_id);
1117 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'),
true);
1118 $this->
ctrl->redirect($this,
'dEditTree');
1127 $this->
tabs->activateSubTab(
'dMappingOverview');
1128 $this->
tabs->activateTab(
'ecs_dir_allocation');
1138 $this->
tabs->clearTargets();
1139 $this->
tabs->setBackTarget(
1140 $this->
lng->txt(
'ecs_back_settings'),
1141 $this->
ctrl->getParentReturnByClass(self::class)
1145 $this->
tabs->addTab(
1146 'ecs_dir_allocation',
1147 $this->
lng->txt(
'ecs_dir_alloc'),
1148 $this->
ctrl->getLinkTarget($this,
'dSettings')
1152 $this->
tabs->addTab(
1153 'ecs_crs_allocation',
1154 $this->
lng->txt(
'ecs_crs_alloc'),
1155 $this->
ctrl->getLinkTarget($this,
'cStart')
1164 if ($a_tab === self::TAB_DIRECTORY) {
1165 $this->
tabs->addSubTab(
1167 $this->
lng->txt(
'ecs_cc_mapping_overview'),
1168 $this->
ctrl->getLinkTarget($this,
'dMappingOverview')
1170 $this->
tabs->addSubTab(
1172 $this->
lng->txt(
'ecs_cms_dir_tree'),
1173 $this->
ctrl->getLinkTarget($this,
'dTrees')
1175 $this->
tabs->addSubTab(
1177 $this->
lng->txt(
'settings'),
1178 $this->
ctrl->getLinkTarget($this,
'dSettings')
1181 if ($a_tab === self::TAB_COURSE) {
1183 $this->
tabs->addSubTab(
1185 $this->
lng->txt(
'ecs_cmap_overview'),
1186 $this->
ctrl->getLinkTarget($this,
'cInitOverview')
1190 $this->
tabs->addSubTab(
1192 $this->
lng->txt(
'settings'),
1193 $this->
ctrl->getLinkTarget($this,
'cSettings')
static lookupCmsIdsOfTree($a_server_id, $a_mid, $a_tree_id)
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 getInstanceByServerId(int $a_server_id)
Get instance by server id.
setSubTabs(int $a_tab)
Set Sub tabs.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(int $a_server_id, int $a_mid)
Get instance.
getContainer()
Get container object.
static getInstanceByServerMid(int $a_server_id, int $a_mid)
Get instance.
static lookupRootId($a_tree_id)
lookup root id
executeCommand()
ilCtrl executeCommand
static deleteMappingsByCsId(int $a_server_id, int $a_mid, int $a_tree_id, array $cs_ids)
Delete mappings.
cStart()
Goto default page.
dShowCmsExplorer(ilExplorer $localExplorer)
Show cms explorer.
dShowLocalExplorer()
Show local explorer.
dSynchronizeTree()
Synchronize Tree.
dStart()
Goto default page.
server()
description: > This example shows how a Progress Bar can be rendered and updated by the server...
setVariable(string $variable, $value='')
Sets the given variable to the given value.
static deleteMappings(int $a_server_id, int $a_mid, int $a_tree_id)
Delete mappings.
static updateStatus(int $a_server_id, int $a_mid, int $a_tree_id)
cSettings(?ilPropertyFormGUI $form=null)
Show course allocation.
static lookupMappingStatus(int $a_server_id, int $a_mid, int $a_tree_id)
Lookup mapping status.
static getCourseMappingFieldSelectOptions()
static _lookupObjId(int $ref_id)
static lookupDefaultTitleUpdate($a_server_id, $a_mid, $a_tree_id)
Lookup default title update setting.
cancel()
return to parent container
static getRulesOfRefId(int $a_sid, int $a_mid, int $a_ref_id)
Get all rule of ref_id.
static lookupLastExistingAttribute(int $a_sid, int $a_mid, int $a_ref_id)
Lookup existing attributes.
__construct(ilECSSettingsGUI $settingsContainer, int $server_id, int $mid)
Constructor.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static mappingStatusToString(int $a_status)
Get mapping status as string.
setPostVar(string $a_post_var)
cShowLocalExplorer()
Show local explorer.
static getInstance()
Get the singleton instance of this ilECSImportManager.
dEditTree(?ilPropertyFormGUI $form=null)
Edit directory tree assignments.
const TYPE_DIRECTORY_TREES
static _lookupTitle(int $obj_id)
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 with active authentication modes.
setValue(string $a_value)
cSaveOverview()
Save overview.
static getInstanceByServerId(int $a_server_id)
Get singleton instance per server.
static deleteDisconnectableMappings(int $a_server_id, int $a_mid, int $a_tree_id, int $a_ref_id)
delete disconnectable mappings
ilECSSettingsGUI $container
Reads ECS events and stores them in the database.
static lookupTitle(int $a_server_id, int $a_mid, int $a_tree_id)
Lookup title by obj id.
cUpdateSettings()
Update course settings.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
dUpdateSettings()
Update node mapping settings.
static getInstanceByAttribute($a_sid, $a_mid, $a_ref_id, $a_att)
Get rule instance by attribute.
dInitFormTreeSettings(?ilPropertyFormGUI $form=null)
Init form settings.
class for explorer view in admin frame
ilGlobalTemplateInterface $tpl
static hasRules(int $a_sid, int $a_mid, int $a_ref_id)
dConfirmDeleteTree()
Delete tree settings.
cDeleteAttribute()
Delete last attribute in form.
static lookupCmsId($a_obj_id)
Lookup cms id.
static lookupMappedItemsForRefId(int $a_server_id, int $a_mid, int $a_tree_id, int $a_ref_id)
Get cs ids for ref_id.
dInitEditTree()
Init tree.
Storage of course attributes for assignment rules.
dSettings(?ilPropertyFormGUI $form=null)
Show directory allocation.
dTrees()
Show directory trees.
cInitMappingForm(int $current_node, $current_attribute)
Init the mapping form.
dDeleteTree()
Delete tree.
Class for ECS node and directory mapping settings.