ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Class for ECS node and directory mapping settings. More...
Public Member Functions | |
__construct (ilECSSettingsGUI $settingsContainer, int $server_id, int $mid) | |
Constructor. More... | |
getContainer () | |
Get container object. More... | |
getServer () | |
getMid () | |
Get mid. More... | |
executeCommand () | |
ilCtrl executeCommand More... | |
cancel () | |
return to parent container More... | |
Data Fields | |
const | TAB_DIRECTORY = 1 |
const | TAB_COURSE = 2 |
Protected Member Functions | |
cStart () | |
Goto default page. More... | |
dStart () | |
Goto default page. More... | |
cInitOverview ($form=null, $current_attribute=null) | |
Show overview page. More... | |
cAddAttribute () | |
Add one attribute in form. More... | |
cDeleteAttribute () | |
Delete last attribute in form. More... | |
cShowLocalExplorer () | |
Show local explorer. More... | |
cInitMappingForm (int $current_node, $current_attribute) | |
Init the mapping form. More... | |
cSaveOverview () | |
Save overview. More... | |
cDeleteRulesOfNode () | |
cSettings (ilPropertyFormGUI $form=null) | |
Show course allocation. More... | |
initFormCSettings () | |
Init settings form. More... | |
dSettings (ilPropertyFormGUI $form=null) | |
Show directory allocation. More... | |
cUpdateSettings () | |
Update course settings. More... | |
dUpdateSettings () | |
Update node mapping settings. More... | |
initFormDSettings () | |
dTrees () | |
Show directory trees. More... | |
dConfirmDeleteTree () | |
Delete tree settings. More... | |
dDeleteTree () | |
Delete tree. More... | |
dEditTree (ilPropertyFormGUI $form=null) | |
Edit directory tree assignments. More... | |
dInitFormTreeSettings (ilPropertyFormGUI $form=null) | |
Init form settings. More... | |
dUpdateTreeSettings () | |
dSynchronizeTree () | |
Synchronize Tree. More... | |
dSynchronizeTrees () | |
dShowLocalExplorer () | |
Show local explorer. More... | |
dShowCmsExplorer (ilExplorer $localExplorer) | |
Show cms explorer. More... | |
dInitEditTree () | |
Init tree. More... | |
dMap () | |
Do mapping. More... | |
dMappingOverview () | |
Show directory trees. More... | |
setTabs () | |
Set tabs. More... | |
setSubTabs (int $a_tab) | |
Set Sub tabs. More... | |
Protected Attributes | |
ilLogger | $log |
ilLanguage | $lng |
ilCtrl | $ctrl |
ilGlobalTemplateInterface | $tpl |
Private Attributes | |
ilTabsGUI | $tabs |
ilToolbarGUI | $toolbar |
ilECSSettingsGUI | $container |
ilECSSetting | $server |
int | $mid |
Class for ECS node and directory mapping settings.
Definition at line 26 of file class.ilECSMappingSettingsGUI.php.
ilECSMappingSettingsGUI::__construct | ( | ilECSSettingsGUI | $settingsContainer, |
int | $server_id, | ||
int | $mid | ||
) |
Constructor.
Definition at line 46 of file class.ilECSMappingSettingsGUI.php.
References $DIC, $mid, ILIAS\Repository\ctrl(), ilECSSetting\getInstanceByServerId(), ILIAS\Repository\lng(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
|
protected |
Add one attribute in form.
Definition at line 200 of file class.ilECSMappingSettingsGUI.php.
References cInitOverview(), ilECSCourseAttributes\getInstance(), getMid(), and getServer().
ilECSMappingSettingsGUI::cancel | ( | ) |
return to parent container
Definition at line 112 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl().
|
protected |
Delete last attribute in form.
Definition at line 209 of file class.ilECSMappingSettingsGUI.php.
References cInitOverview(), ilECSCourseAttributes\getInstance(), getMid(), and getServer().
|
protected |
Definition at line 414 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), getMid(), ilECSCourseMappingRule\getRulesOfRefId(), getServer(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
|
protected |
Init the mapping form.
Definition at line 249 of file class.ilECSMappingSettingsGUI.php.
References $attributes, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ILIAS\Repository\ctrl(), ilECSCourseAttributes\getInstance(), ilECSCourseMappingRule\getInstanceByAttribute(), getMid(), getServer(), ilECSCourseMappingRule\hasRules(), ILIAS\Repository\lng(), ilCheckboxInputGUI\setChecked(), ilRadioOption\setInfo(), ilRadioGroupInputGUI\setValue(), and ilRadioOption\setValue().
Referenced by cInitOverview(), and cSaveOverview().
|
protected |
Show overview page.
Definition at line 152 of file class.ilECSMappingSettingsGUI.php.
References cInitMappingForm(), cShowLocalExplorer(), ILIAS\Repository\ctrl(), getMid(), getServer(), ILIAS\Repository\int(), ilECSCourseMappingRule\lookupLastExistingAttribute(), ROOT_FOLDER_ID, setSubTabs(), and ILIAS\Repository\tabs().
Referenced by cAddAttribute(), cDeleteAttribute(), cSaveOverview(), and cStart().
|
protected |
Save overview.
Definition at line 371 of file class.ilECSMappingSettingsGUI.php.
References cInitMappingForm(), cInitOverview(), ILIAS\Repository\ctrl(), ilECSCourseMappingRule\getInstanceByAttribute(), getMid(), getServer(), ILIAS\Repository\int(), and ILIAS\Repository\lng().
|
protected |
Show course allocation.
Definition at line 438 of file class.ilECSMappingSettingsGUI.php.
References initFormCSettings(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by cStart(), and cUpdateSettings().
|
protected |
Show local explorer.
Definition at line 218 of file class.ilECSMappingSettingsGUI.php.
References $_GET, ILIAS\Repository\ctrl(), getMid(), getServer(), ILIAS\Repository\int(), ROOT_FOLDER_ID, and ilECSNodeMappingLocalExplorer\setPostVar().
Referenced by cInitOverview().
|
protected |
Goto default page.
Definition at line 125 of file class.ilECSMappingSettingsGUI.php.
References cInitOverview(), cSettings(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), and getServer().
|
protected |
Update course settings.
Definition at line 588 of file class.ilECSMappingSettingsGUI.php.
References $attributes, $name, ILIAS\LTI\ToolProvider\$settings, cSettings(), ILIAS\Repository\ctrl(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), ilECSMappingUtils\getRoleMappingInfo(), getServer(), initFormCSettings(), and ILIAS\Repository\lng().
|
protected |
Delete tree settings.
Definition at line 709 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), getMid(), getServer(), ILIAS\Repository\lng(), ilECSCmsData\lookupTitle(), setSubTabs(), and ILIAS\Repository\tabs().
|
protected |
Delete tree.
Definition at line 737 of file class.ilECSMappingSettingsGUI.php.
References $data, ILIAS\Repository\ctrl(), ilECSNodeMappingAssignments\deleteMappings(), ilECSImportManager\getInstance(), getMid(), getServer(), ILIAS\Repository\lng(), ilECSCmsData\lookupCmsIdsOfTree(), and ilECSCmsTree\lookupRootId().
|
protected |
Edit directory tree assignments.
Definition at line 776 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), dInitFormTreeSettings(), dShowCmsExplorer(), dShowLocalExplorer(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by dInitEditTree(), and dUpdateTreeSettings().
|
protected |
Init tree.
Definition at line 1043 of file class.ilECSMappingSettingsGUI.php.
References dEditTree(), getMid(), getServer(), and ilECSCmsData\updateStatus().
|
protected |
Init form settings.
Definition at line 810 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), getMid(), getServer(), ILIAS\Repository\lng(), ilECSCmsData\lookupCmsId(), ilECSMappingUtils\lookupMappingStatus(), ilECSCmsTree\lookupRootId(), ilECSMappingUtils\MAPPED_MANUAL, ilECSMappingUtils\mappingStatusToString(), ilFormPropertyGUI\setDisabled(), ilCheckboxInputGUI\setValue(), ilNumberInputGUI\setValue(), and ilNonEditableValueGUI\setValue().
Referenced by dEditTree(), and dUpdateTreeSettings().
|
protected |
Do mapping.
Definition at line 1057 of file class.ilECSMappingSettingsGUI.php.
References $ref_id, ilObject\_lookupObjId(), ILIAS\Repository\ctrl(), ilECSNodeMappingAssignments\deleteDisconnectableMappings(), ilECSNodeMappingAssignments\deleteMappingsByCsId(), getMid(), getServer(), ILIAS\Repository\lng(), ilECSNodeMappingAssignments\lookupDefaultTitleUpdate(), and ilECSCmsData\updateStatus().
|
protected |
Show directory trees.
Definition at line 1123 of file class.ilECSMappingSettingsGUI.php.
References setSubTabs(), and ILIAS\Repository\tabs().
|
protected |
Show directory allocation.
Definition at line 570 of file class.ilECSMappingSettingsGUI.php.
References initFormDSettings(), setSubTabs(), and ILIAS\Repository\tabs().
Referenced by dStart().
|
protected |
Show cms explorer.
Definition at line 986 of file class.ilECSMappingSettingsGUI.php.
References $_GET, $ref_id, ILIAS\Repository\ctrl(), getMid(), getServer(), ILIAS\Repository\int(), ilECSNodeMappingAssignments\lookupMappedItemsForRefId(), and ilECSCmsTree\lookupRootId().
Referenced by dEditTree().
|
protected |
Show local explorer.
Definition at line 953 of file class.ilECSMappingSettingsGUI.php.
References $_GET, ILIAS\Repository\ctrl(), getMid(), getServer(), ILIAS\Repository\int(), ROOT_FOLDER_ID, and ilECSNodeMappingLocalExplorer\setPostVar().
Referenced by dEditTree().
|
protected |
Goto default page.
Definition at line 140 of file class.ilECSMappingSettingsGUI.php.
References dSettings(), dTrees(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), and getServer().
|
protected |
Synchronize Tree.
Definition at line 913 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), getServer(), and ILIAS\Repository\lng().
|
protected |
Definition at line 925 of file class.ilECSMappingSettingsGUI.php.
References Vendor\Package\$e, $res, ILIAS\Repository\ctrl(), ilLogLevel\DEBUG, getServer(), ilECSEventQueueReader\TYPE_DIRECTORY_TREES, and ilECSEvent\UPDATED.
|
protected |
Show directory trees.
Definition at line 682 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), getMid(), getServer(), ILIAS\Repository\lng(), setSubTabs(), ILIAS\Repository\tabs(), and ILIAS\Repository\toolbar().
Referenced by dStart().
|
protected |
Update node mapping settings.
Definition at line 639 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\LTI\ToolProvider\$settings, ILIAS\Repository\ctrl(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), getServer(), initFormDSettings(), and ILIAS\Repository\lng().
|
protected |
Definition at line 882 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), dEditTree(), dInitFormTreeSettings(), getMid(), getServer(), and ILIAS\Repository\lng().
ilECSMappingSettingsGUI::executeCommand | ( | ) |
ilCtrl executeCommand
Definition at line 88 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), getServer(), ILIAS\Repository\lng(), and setTabs().
ilECSMappingSettingsGUI::getContainer | ( | ) |
Get container object.
Definition at line 66 of file class.ilECSMappingSettingsGUI.php.
References $container.
ilECSMappingSettingsGUI::getMid | ( | ) |
Get mid.
Definition at line 80 of file class.ilECSMappingSettingsGUI.php.
References $mid.
Referenced by cAddAttribute(), cDeleteAttribute(), cDeleteRulesOfNode(), cInitMappingForm(), cInitOverview(), cSaveOverview(), cShowLocalExplorer(), cStart(), cUpdateSettings(), dConfirmDeleteTree(), dDeleteTree(), dInitEditTree(), dInitFormTreeSettings(), dMap(), dShowCmsExplorer(), dShowLocalExplorer(), dStart(), dTrees(), dUpdateSettings(), dUpdateTreeSettings(), initFormCSettings(), initFormDSettings(), setSubTabs(), and setTabs().
ilECSMappingSettingsGUI::getServer | ( | ) |
Definition at line 71 of file class.ilECSMappingSettingsGUI.php.
References $server.
Referenced by cAddAttribute(), cDeleteAttribute(), cDeleteRulesOfNode(), cInitMappingForm(), cInitOverview(), cSaveOverview(), cShowLocalExplorer(), cStart(), cUpdateSettings(), dConfirmDeleteTree(), dDeleteTree(), dInitEditTree(), dInitFormTreeSettings(), dMap(), dShowCmsExplorer(), dShowLocalExplorer(), dStart(), dSynchronizeTree(), dSynchronizeTrees(), dTrees(), dUpdateSettings(), dUpdateTreeSettings(), executeCommand(), initFormCSettings(), initFormDSettings(), setSubTabs(), and setTabs().
|
protected |
Init settings form.
Definition at line 456 of file class.ilECSMappingSettingsGUI.php.
References $attributes, $check, $name, $path, ILIAS\Repository\ctrl(), ilGlobalTemplateInterface\get(), ilECSMappingUtils\getAuthModeSelection(), ilECSMappingUtils\getCourseMappingFieldSelectOptions(), ilECSCourseAttributes\getInstance(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), ilECSMappingUtils\getRoleMappingInfo(), getServer(), ILIAS\Repository\lng(), ROOT_FOLDER_ID, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setRequired(), and ilGlobalTemplateInterface\setVariable().
Referenced by cSettings(), and cUpdateSettings().
|
protected |
Definition at line 658 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), getServer(), ILIAS\Repository\lng(), and ilCheckboxInputGUI\setChecked().
Referenced by dSettings(), and dUpdateSettings().
|
protected |
Set Sub tabs.
Definition at line 1161 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), ilECSNodeMappingSettings\getInstanceByServerMid(), getMid(), getServer(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by cInitOverview(), cSettings(), dConfirmDeleteTree(), dMappingOverview(), dSettings(), and dTrees().
|
protected |
Set tabs.
Definition at line 1135 of file class.ilECSMappingSettingsGUI.php.
References ILIAS\Repository\ctrl(), ilECSParticipantSettings\getInstanceByServerId(), getMid(), getServer(), ILIAS\Repository\lng(), and ILIAS\Repository\tabs().
Referenced by executeCommand().
|
private |
Definition at line 38 of file class.ilECSMappingSettingsGUI.php.
Referenced by getContainer().
|
protected |
Definition at line 33 of file class.ilECSMappingSettingsGUI.php.
|
protected |
Definition at line 32 of file class.ilECSMappingSettingsGUI.php.
|
protected |
Definition at line 31 of file class.ilECSMappingSettingsGUI.php.
|
private |
Definition at line 40 of file class.ilECSMappingSettingsGUI.php.
Referenced by __construct(), and getMid().
|
private |
Definition at line 39 of file class.ilECSMappingSettingsGUI.php.
Referenced by getServer().
|
private |
Definition at line 35 of file class.ilECSMappingSettingsGUI.php.
|
private |
Definition at line 36 of file class.ilECSMappingSettingsGUI.php.
|
protected |
Definition at line 34 of file class.ilECSMappingSettingsGUI.php.
const ilECSMappingSettingsGUI::TAB_COURSE = 2 |
Definition at line 29 of file class.ilECSMappingSettingsGUI.php.
const ilECSMappingSettingsGUI::TAB_DIRECTORY = 1 |
Definition at line 28 of file class.ilECSMappingSettingsGUI.php.