18 declare(strict_types=1);
    50         $this->
lng = $DIC->language();
    51         $this->
ctrl = $DIC->ctrl();
    52         $this->tpl = $DIC->ui()->mainTemplate();
    53         $this->log = $DIC->logger()->wsrv();
    54         $this->
tabs = $DIC->tabs();
    55         $this->
toolbar = $DIC->toolbar();
    57         $this->container = $settingsContainer;
    60         $this->
lng->loadLanguageModule(
'ecs');
    90         $this->tpl->setTitle($this->
lng->txt(
'ecs_campus_connect_title'));
    92         $this->
ctrl->saveParameter($this, 
'server_id');
    93         $this->
ctrl->saveParameter($this, 
'mid');
    94         $this->
ctrl->saveParameter($this, 
'tid');
    96         $next_class = $this->
ctrl->getNextClass($this);
    97         $cmd = $this->
ctrl->getCmd();
   106         $this->tpl->setDescription(
'');
   114         $this->
ctrl->returnToParent($this);
   130         )->isCourseAllocationEnabled()) {
   152     protected function cInitOverview($form = null, $current_attribute = null): void
   154         $current_node = (array) (($_REQUEST[
'lnodes']) ?: 
ROOT_FOLDER_ID);
   156         $current_node = (
int) end($current_node);
   158         $this->
ctrl->setParameter($this, 
'lnodes', $current_node);
   161         $this->
tabs->activateTab(
'ecs_crs_allocation');
   162         $this->
tabs->activateSubTab(
'cInitTree');
   164         $this->tpl->addBlockFile(
'ADM_CONTENT', 
'adm_content', 
'tpl.ecs_cmap_overview.html', 
'components/ILIAS/WebServices/ECS');
   168             if ($current_attribute === null) {
   170                 $current_attribute = (string) $_REQUEST[
'ecs_ca'];
   171                 if (!$current_attribute) {
   192         $this->tpl->setVariable(
'TFORM_ACTION', $this->
ctrl->getFormAction($this));
   193         $this->tpl->setVariable(
'LOCAL_EXPLORER', $explorer->getOutput());
   194         $this->tpl->setVariable(
'MAPPING_FORM', $form->getHTML());
   221             $this->
ctrl->getLinkTarget($this, 
'cInitOverview'),
   227         $lnodes = (array) $_REQUEST[
'lnodes'];
   228         $checked_node = (
int) array_pop($lnodes);
   229         if ((
int) $_REQUEST[
'lid']) {
   230             $checked_node = (
int) $_REQUEST[
'lid'];
   234             $explorer->setCheckedItems(array($checked_node));
   238         $explorer->setTargetGet(
'lref_id');
   239         $explorer->setSessionExpandVariable(
'lexpand');
   240         $explorer->setExpand((
int) 
$_GET[
'lexpand']);
   241         $explorer->setExpandTarget($this->
ctrl->getLinkTarget($this, 
'cInitOverview'));
   242         $explorer->setOutput(0);
   254         $form->setTableWidth(
"100%");
   255         $this->
ctrl->setParameter($this, 
'ecs_ca', $current_attribute);
   256         $form->setFormAction($this->
ctrl->getFormAction($this));
   257         $this->
ctrl->setParameter($this, 
'ecs_ca', 
'');
   262         $attributes = $attributes_obj->getAttributeSequence($current_attribute);
   263         foreach ($attributes as $att_name) {
   267             $section->setTitle($this->
lng->txt(
'ecs_cmap_att_' . $att_name));
   270             $form->addItem($section);
   273             $isfilter->
setValue($rule->isFilterEnabled() ? 
"1" : 
"0");
   275             $all_values = 
new ilRadioOption($this->
lng->txt(
'ecs_cmap_form_all_values'), 
"0");
   276             $isfilter->addOption($all_values);
   278             $use_filter = 
new ilRadioOption($this->
lng->txt(
'ecs_cmap_form_filter_by_values'), 
"1");
   280             $filter->
setInfo($this->
lng->txt(
'ecs_cmap_form_filter_info'));
   281             $filter->setSize(50);
   282             $filter->setMaxLength(512);
   283             $filter->setRequired(
true);
   284             $filter->
setValue($rule->getFilter());
   285             $use_filter->addSubItem($filter);
   287             $isfilter->addOption($use_filter);
   289             $form->addItem($isfilter);
   292             $subdirs = 
new ilCheckboxInputGUI($this->
lng->txt(
'ecs_cmap_form_create_subdirs'), $att_name . 
'_subdirs');
   293             $subdirs->setChecked($rule->isSubdirCreationEnabled());
   294             $subdirs->setValue(
"1");
   309             $form->addItem($subdirs);
   339         $hidden_atts->setValue(implode(
',', $attributes));
   340         $form->addItem($hidden_atts);
   343         if ($current_attribute) {
   344             $form->addCommandButton(
'cSaveOverview', $this->
lng->txt(
'save'));
   347         if ($attributes_obj->getNextAttributeName($current_attribute)) {
   348             $form->addCommandButton(
'cAddAttribute', $this->
lng->txt(
'ecs_cmap_add_attribute_btn'));
   350         if ($attributes_obj->getPreviousAttributeName($current_attribute)) {
   351             $form->addCommandButton(
'cDeleteAttribute', $this->
lng->txt(
'ecs_cmap_delete_attribute_btn'));
   358             $form->addCommandButton(
'cDeleteRulesOfNode', $this->
lng->txt(
'ecs_cmap_delete_rule'));
   361         #$form->addCommandButton('cInitOverview', $this->lng->txt('cancel'));   363         $form->setShowTopButtons(
false);
   373         $current_node = (
int) $_REQUEST[
'lnodes'];
   374         $current_att = (string) $_REQUEST[
'ecs_ca'];
   377         if ($form->checkInput()) {
   379             $all_attributes = explode(
',', $form->getInput(
'attributes'));
   380             foreach ((array) $all_attributes as $att_name) {
   387                 $rule->setServerId($this->
getServer()->getServerId());
   388                 $rule->setMid($this->
getMid());
   389                 $rule->setRefId($current_node);
   390                 $rule->setAttribute($att_name);
   391                 $rule->enableFilter((
bool) $form->getInput($att_name . 
'_is_filter'));
   392                 $rule->setFilter($form->getInput($att_name . 
'_filter'));
   393                 $rule->enableSubdirCreation((
bool) $form->getInput($att_name . 
'_subdirs'));
   397                 if ($rule->getRuleId()) {
   404             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'), 
true);
   405             $this->
ctrl->setParameter($this, 
'lnodes', $current_node);
   406             $this->
ctrl->redirect($this, 
'cInitOverview');
   409         $form->setValuesByPost();
   410         $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'));
   416         $current_node = (
int) $_REQUEST[
'lnodes'];
   424         foreach ($rules as $rid) {
   428         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'), 
true);
   429         $this->
ctrl->redirect($this, 
'cInitOverview');
   441         $this->
tabs->activateTab(
'ecs_crs_allocation');
   442         $this->
tabs->activateSubTab(
'cSettings');
   448         $this->tpl->setContent($form->getHTML());
   459         $form->setFormAction($this->
ctrl->getFormAction($this));
   460         $form->setTitle($this->
lng->txt(
'settings'));
   470         $imp->setRequired(
true);
   472         $tpl = 
new ilTemplate(
'tpl.ecs_import_id_form.html', 
true, 
true, 
'components/ILIAS/WebServices/ECS');
   482             $path->enableTextOnly(
false);
   483             $path->enableHideLeaf(
false);
   487         $imp->setHtml($tpl->
get());
   488         $imp->setInfo($this->
lng->txt(
'ecs_cmap_def_cat_info'));
   489         $form->addItem($imp);
   494         $allinone->setInfo($this->
lng->txt(
'ecs_cmap_all_in_one_info'));
   496         $allinone_cat = 
new ilCustomInputGUI($this->
lng->txt(
'ecs_cmap_all_in_one_cat'), 
'allinone_cat');
   497         $allinone_cat->setRequired(
true);
   499         $tpl = 
new ilTemplate(
'tpl.ecs_import_id_form.html', 
true, 
true, 
'components/ILIAS/WebServices/ECS');
   508             $path->enableTextOnly(
false);
   509             $path->enableHideLeaf(
false);
   513         $allinone_cat->setHtml($tpl->
get());
   514         $allinone->addSubItem($allinone_cat);
   515         $form->addItem($allinone);
   524         $attributes->setValue(
   528             )->getAttributeValues()
   530         $attributes->setRequired(
true);
   532         $multiple->addSubItem($attributes);
   534         $form->addItem($multiple);
   538         $rm->setTitle($this->
lng->txt(
'ecs_role_mappings'));
   544         $auth_type->setRequired(
true);
   546         $form->addItem($auth_type);
   552             if (isset($mapping_defs[$name])) {
   553                 $role_map->setValue($mapping_defs[$name]);
   555             $role_map->setSize(32);
   556             $role_map->setMaxLength(64);
   557             $role_map->setRequired($info[
'required']);
   558             $form->addItem($role_map);
   561         $form->addCommandButton(
'cUpdateSettings', $this->
lng->txt(
'save'));
   562         $form->addCommandButton(
'cSettings', $this->
lng->txt(
'cancel'));
   573         $this->
tabs->activateTab(
'ecs_dir_allocation');
   574         $this->
tabs->activateSubTab(
'dSettings');
   580         $this->tpl->setContent($form->getHTML());
   591         if ($form->checkInput()) {
   593             $settings->enableCourseAllocation((
bool) $form->getInput(
'enabled'));
   594             $settings->setDefaultCourseCategory((
int) $form->getInput(
'default_cat'));
   595             $settings->enableAllInOne((
bool) $form->getInput(
'allinone'));
   596             $settings->setAllInOneCategory((
int) $form->getInput(
'allinone_cat'));
   597             $settings->enableAttributeMapping((
bool) $form->getInput(
'multiple'));
   598             $settings->setAuthMode($form->getInput(
'auth_mode'));
   602                 $role_mappings[$role] = $form->getInput((
string) $role);
   604             $settings->setRoleMappings($role_mappings);
   609             $attributes->delete();
   611             $form_atts = $form->getInput(
'atts');
   613             foreach ($form_atts as $name) {
   619                 $att->setServerId($this->
getServer()->getServerId());
   620                 $att->setMid($this->
getMid());
   621                 $att->setName($name);
   628             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'), 
true);
   629             $this->
ctrl->redirect($this, 
'cSettings');
   631         $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'));
   632         $form->setValuesByPost();
   642         if ($form->checkInput()) {
   644             $settings->enableDirectoryMapping((
bool) $form->getInput(
'active'));
   645             $settings->enableEmptyContainerCreation(!$form->getInput(
'empty'));
   647             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'), 
true);
   649             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'), 
true);
   650             $form->setValuesByPost();
   652         $this->
ctrl->redirect($this, 
'dSettings');
   661         $form->setFormAction($this->
ctrl->getFormAction($this));
   662         $form->setTitle($this->
lng->txt(
'general_settings'));
   666         $form->addItem($active);
   670         $create_empty->setInfo($this->
lng->txt(
'ecs_node_mapping_create_empty_info'));
   671         $form->addItem($create_empty);
   673         $form->addCommandButton(
'dUpdateSettings', $this->
lng->txt(
'save'));
   674         $form->addCommandButton(
'cancel', $this->
lng->txt(
'cancel'));
   685         $this->
tabs->activateSubTab(
'dTrees');
   686         $this->
tabs->activateTab(
'ecs_dir_allocation');
   689             $this->
lng->txt(
'ecs_sync_trees'),
   690             $this->
ctrl->getLinkTarget($this, 
'dSynchronizeTrees')
   701         $dtreeTable->parse();
   702         $this->tpl->setContent($dtreeTable->getHTML());
   712         $this->
tabs->activateSubTab(
'dTrees');
   713         $this->
tabs->activateTab(
'ecs_dir_allocation');
   716         $confirm->setFormAction($this->
ctrl->getFormAction($this));
   717         $confirm->setHeaderText($this->
lng->txt(
'ecs_confirm_delete_tree'));
   725                 (
int) $_REQUEST[
'tid']
   728         $confirm->setConfirm($this->
lng->txt(
'delete'), 
'dDeleteTree');
   729         $confirm->setCancel($this->
lng->txt(
'cancel'), 
'dTrees');
   731         $this->tpl->setContent($confirm->getHTML());
   739         $this->log->info(
'Deleting tree');
   753                 (
int) $_REQUEST[
'tid']
   760         $data->setTreeId((
int) $_REQUEST[
'tid']);
   766             (
int) $_REQUEST[
'tid']
   769         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'ecs_cms_tree_deleted'), 
true);
   770         $this->
ctrl->redirect($this, 
'dTrees');
   778         $this->tpl->addBlockFile(
'ADM_CONTENT', 
'adm_content', 
'tpl.ecs_edit_tree.html', 
'components/ILIAS/WebServices/ECS');
   780         $this->
ctrl->saveParameter($this, 
'cid');
   782         $this->
tabs->clearTargets();
   783         $this->
tabs->setBack2Target(
   784             $this->
lng->txt(
'ecs_back_settings'),
   785             $this->
ctrl->getLinkTarget($this, 
'cancel')
   787         $this->
tabs->setBackTarget(
   788             $this->
lng->txt(
'ecs_cms_dir_tree'),
   789             $this->
ctrl->getLinkTarget($this, 
'dTrees')
   792         $this->tpl->setVariable(
'LEGEND', $this->
lng->txt(
'ecs_status_legend'));
   793         $this->tpl->setVariable(
'PENDING_UNMAPPED', $this->
lng->txt(
'ecs_status_pending_unmapped'));
   794         $this->tpl->setVariable(
'PENDING_UNMAPPED_DISCON', $this->
lng->txt(
'ecs_status_pending_unmapped_discon'));
   795         $this->tpl->setVariable(
'PENDING_UNMAPPED_NONDISCON', $this->
lng->txt(
'ecs_status_pending_unmapped_nondiscon'));
   796         $this->tpl->setVariable(
'MAPPED', $this->
lng->txt(
'ecs_status_mapped'));
   797         $this->tpl->setVariable(
'DELETED', $this->
lng->txt(
'ecs_status_deleted'));
   800         $this->tpl->setVariable(
'GENERAL_FORM', $form->getHTML());
   801         $this->tpl->setVariable(
'TFORM_ACTION', $this->
ctrl->getFormAction($this, 
'dEditTree'));
   819             (
int) $_REQUEST[
'tid'],
   823         $form = 
new ilPropertyFormGUI();
   824         $form->setFormAction($this->
ctrl->getFormAction($this, 
'dEditTree'));
   825         $form->setTitle($this->
lng->txt(
'general_settings'));
   826         $form->addCommandButton(
'dUpdateTreeSettings', $this->
lng->txt(
'save'));
   827         $form->addCommandButton(
'dTrees', $this->
lng->txt(
'cancel'));
   828         $form->setTableWidth(
'30%');
   835         $cmsid->setDisabled(
true);
   837         $cmsid->setMaxLength(12);
   838         $form->addItem($cmsid);
   844             (
int) $_REQUEST[
'tid']
   851         $form->addItem($status);
   855         $title->setValue(
"1");
   856         $title->setChecked($assignment->isTitleUpdateEnabled());
   857         #$title->setInfo($this->lng->txt('ecs_title_update_info'));   858         $form->addItem($title);
   862         $position->setDisabled(!$mapping_advanced);
   863         $position->setChecked($mapping_advanced && $assignment->isPositionUpdateEnabled());
   864         $position->setValue(
"1");
   865         #$position->setInfo($this->lng->txt('ecs_position_update_info'));   866         $form->addItem($position);
   869         $tree->setDisabled(!$mapping_advanced);
   870         $tree->setChecked($mapping_advanced && $assignment->isTreeUpdateEnabled());
   871         $tree->setValue(
"1");
   872         #$tree->setInfo($this->lng->txt('ecs_tree_update_info'));   873         $form->addItem($tree);
   887             (
int) $_REQUEST[
'tid'],
   890         $assignment->setRefId(0);
   891         $assignment->setObjId(0);
   894         if ($form->checkInput()) {
   895             $assignment->enableTitleUpdate($form->getInput(
'title'));
   896             $assignment->enableTreeUpdate($form->getInput(
'tree'));
   897             $assignment->enablePositionUpdate($form->getInput(
'position'));
   898             $assignment->update();
   900             $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved', 
"1"));
   901             $this->
ctrl->redirect($this, 
'dEditTree');
   904         $form->setValuesByPost();
   905         $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'err_check_input'));
   918             (
int) $_REQUEST[
'tid']
   921         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'ecs_cms_tree_synchronized'), 
true);
   922         $this->
ctrl->redirect($this, 
'dTrees');
   927         $this->log->dump(
'Start synchronizing cms directory trees');
   931             $res = $connector->getDirectoryTrees();
   935             foreach (
$res->getLinkIds() as $cms_id) {
   943             $this->
ctrl->redirect($this, 
'dTrees');
   945             $this->tpl->setOnScreenMessage(
'failure', $e->getMessage(), 
true);
   946             $this->
ctrl->redirect($this, 
'dTrees');
   956             $this->
ctrl->getLinkTarget($this, 
'dEditTree'),
   962         $lnodes = (array) $_REQUEST[
'lnodes'];
   963         $checked_node = array_pop($lnodes);
   964         if ((
int) $_REQUEST[
'lid']) {
   965             $checked_node = (
int) $_REQUEST[
'lid'];
   969             $explorer->setCheckedItems(array($checked_node));
   973         $explorer->setTargetGet(
'lref_id');
   974         $explorer->setSessionExpandVariable(
'lexpand');
   975         $explorer->setExpand((
int) 
$_GET[
'lexpand']);
   976         $explorer->setExpandTarget($this->
ctrl->getLinkTarget($this, 
'dEditTree'));
   977         $explorer->setOutput(0);
   978         $this->tpl->setVariable(
'LOCAL_EXPLORER', $explorer->getOutput());
   989             $this->
ctrl->getLinkTarget($this, 
'dEditTree'),
   992             (
int) $_REQUEST[
'tid']
   997                 (
int) $_REQUEST[
'tid']
  1000         $explorer->setPostVar(
'rnodes[]');
  1004         foreach ($localExplorer->getCheckedItems() as 
$ref_id) {
  1005             $explorer->setCheckedItems(
  1009                     (
int) $_REQUEST[
'tid'],
  1028         $explorer->setTargetGet(
'rref_id');
  1029         $explorer->setSessionExpandVariable(
'rexpand');
  1031         #if((int) $_REQUEST['rexpand'])  1033             $explorer->setExpand((
int) 
$_GET[
'rexpand']);
  1035         $explorer->setExpandTarget($this->
ctrl->getLinkTarget($this, 
'dEditTree'));
  1036         $explorer->setOutput(0);
  1037         $this->tpl->setVariable(
'REMOTE_EXPLORER', $explorer->getOutput());
  1048             (
int) $_REQUEST[
'tid']
  1060             $this->tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
'select_one'), 
true);
  1061             $this->
ctrl->redirect($this, 
'dEditTree');
  1069             (
int) $_REQUEST[
'tid'],
  1074         $nodes = (array) 
$_POST[
'rnodes'];
  1075         $nodes = array_reverse($nodes);
  1077         foreach ($nodes as $cms_id) {
  1081                 (
int) $_REQUEST[
'tid'],
  1084             $assignment->setRefId(
$ref_id);
  1086             $assignment->enablePositionUpdate(
false);
  1087             $assignment->enableTreeUpdate(
false);
  1091                 (
int) $_REQUEST[
'tid']
  1093             $assignment->update();
  1097             $childs = $cmsTree->getSubTreeIds($cms_id);
  1102                 (
int) $_REQUEST[
'tid'],
  1110             (
int) $_REQUEST[
'tid']
  1114         $this->
ctrl->setParameter($this, 
'lid', (
int) 
$ref_id);
  1116         $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'settings_saved'), 
true);
  1117         $this->
ctrl->redirect($this, 
'dEditTree');
  1126         $this->
tabs->activateSubTab(
'dMappingOverview');
  1127         $this->
tabs->activateTab(
'ecs_dir_allocation');
  1137         $this->
tabs->clearTargets();
  1138         $this->
tabs->setBackTarget(
  1139             $this->
lng->txt(
'ecs_back_settings'),
  1140             $this->
ctrl->getParentReturnByClass(self::class)
  1144             $this->
tabs->addTab(
  1145                 'ecs_dir_allocation',
  1146                 $this->
lng->txt(
'ecs_dir_alloc'),
  1147                 $this->
ctrl->getLinkTarget($this, 
'dSettings')
  1151         $this->
tabs->addTab(
  1152             'ecs_crs_allocation',
  1153             $this->
lng->txt(
'ecs_crs_alloc'),
  1154             $this->
ctrl->getLinkTarget($this, 
'cStart')
  1163         if ($a_tab === self::TAB_DIRECTORY) {
  1164             $this->
tabs->addSubTab(
  1166                 $this->
lng->txt(
'ecs_cc_mapping_overview'),
  1167                 $this->
ctrl->getLinkTarget($this, 
'dMappingOverview')
  1169             $this->
tabs->addSubTab(
  1171                 $this->
lng->txt(
'ecs_cms_dir_tree'),
  1172                 $this->
ctrl->getLinkTarget($this, 
'dTrees')
  1174             $this->
tabs->addSubTab(
  1176                 $this->
lng->txt(
'settings'),
  1177                 $this->
ctrl->getLinkTarget($this, 
'dSettings')
  1180         if ($a_tab === self::TAB_COURSE) {
  1182                 $this->
tabs->addSubTab(
  1184                     $this->
lng->txt(
'ecs_cmap_overview'),
  1185                     $this->
ctrl->getLinkTarget($this, 
'cInitOverview')
  1189             $this->
tabs->addSubTab(
  1191                 $this->
lng->txt(
'settings'),
  1192                 $this->
ctrl->getLinkTarget($this, 
'cSettings')
 
static lookupCmsIdsOfTree($a_server_id, $a_mid, $a_tree_id)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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. 
 
cSettings(ilPropertyFormGUI $form=null)
Show course allocation. 
 
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. 
 
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string. 
 
dSynchronizeTree()
Synchronize Tree. 
 
dSettings(ilPropertyFormGUI $form=null)
Show directory allocation. 
 
setVariable(string $variable, $value='')
Sets the given variable to the given value. 
 
dStart()
Goto default page. 
 
server()
 description: > This example shows how a Progress Bar can be rendered and updated by the server...
 
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)
 
static lookupMappingStatus(int $a_server_id, int $a_mid, int $a_tree_id)
Lookup mapping status. 
 
dEditTree(ilPropertyFormGUI $form=null)
Edit directory tree assignments. 
 
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. 
 
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. 
 
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. 
 
dUpdateSettings()
Update node mapping settings. 
 
dInitFormTreeSettings(ilPropertyFormGUI $form=null)
Init form settings. 
 
static getInstanceByAttribute($a_sid, $a_mid, $a_ref_id, $a_att)
Get rule instance by attribute. 
 
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. 
 
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.