ILIAS
trunk Revision v11.0_alpha-1862-g4e205cb56d4
|
Public Member Functions | |
__construct () | |
executeCommand () | |
Execute command. More... | |
overview () | |
List available servers. More... | |
communities () | |
show communities More... | |
importMappings () | |
Show mapping settings (EContent-Data <-> (Remote)Course. More... | |
Data Fields | |
const | MAPPING_EXPORT = 1 |
const | MAPPING_IMPORT = 2 |
Protected Member Functions | |
activate () | |
activate server More... | |
deactivate () | |
activate server More... | |
readAll () | |
Read all importable econtent. More... | |
create () | |
Create new settings. More... | |
edit () | |
Edit server setting. More... | |
cp () | |
delete () | |
Delete confirmation. More... | |
doDelete () | |
Do delete. More... | |
settings () | |
show settings More... | |
initSettingsForm ($a_mode='update') | |
init settings form More... | |
update () | |
save settings More... | |
save () | |
Save settings. More... | |
updateTitle () | |
Update configuration title. More... | |
loadFromPost () | |
Load from post. More... | |
refreshParticipants () | |
Refresh participants. More... | |
validateImportTypes (array $import_types) | |
Validate import types. More... | |
updateCommunities () | |
update whitelist More... | |
setMappingTabs (int $a_active) | |
Handle tabs for ECS data mapping. More... | |
exportMappings () | |
Show mapping settings (EContent-Data <-> (Remote)Course. More... | |
saveImportMappings () | |
Save mappings. More... | |
saveExportMappings () | |
Save mappings. More... | |
initMappingsForm (int $a_server_id, int $mapping_type) | |
init mapping form More... | |
categoryMapping () | |
Category mappings. More... | |
addCategoryMapping () | |
save category mapping More... | |
editCategoryMapping () | |
Edit category mapping. More... | |
updateCategoryMapping () | |
update category mapping More... | |
deleteCategoryMappings () | |
Delete selected category mappings. More... | |
showRulesTable () | |
Show rules table. More... | |
initRule (int $a_rule_id=0) | |
Init rule. More... | |
initCategoryMappingForm ($a_mode='add') | |
Init category mapping form. More... | |
imported () | |
Show imported materials. More... | |
exportImported () | |
csv export of imported remote courses More... | |
released () | |
Show released materials. More... | |
exportReleased () | |
export released More... | |
prepareFieldSelection ($fields) | |
get options for field selection More... | |
initSettings (int $a_server_id=1) | |
Init settings. More... | |
setSubTabs () | |
set sub tabs More... | |
Private Member Functions | |
prepareRoleSelect () | |
get global role array More... | |
buildPath (int $a_ref_id) | |
ilECSSettingsGUI: ilECSMappingSettingsGUI, ilECSParticipantSettingsGUI
Definition at line 27 of file class.ilECSSettingsGUI.php.
ilECSSettingsGUI::__construct | ( | ) |
Definition at line 49 of file class.ilECSSettingsGUI.php.
References $DIC, ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ILIAS\FileDelivery\http(), initSettings(), ILIAS\Repository\lng(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
|
protected |
activate server
Definition at line 133 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), initSettings(), ILIAS\Repository\lng(), and settings().
|
protected |
save category mapping
Definition at line 1006 of file class.ilECSSettingsGUI.php.
References categoryMapping(), ILIAS\Repository\form(), initCategoryMappingForm(), initRule(), ILIAS\Repository\lng(), ilECSCategoryMappingRule\TYPE_BY_TYPE, ilECSCategoryMappingRule\TYPE_DURATION, and ilECSCategoryMappingRule\TYPE_FIXED.
|
private |
Definition at line 1650 of file class.ilECSSettingsGUI.php.
Referenced by initCategoryMappingForm(), and initSettingsForm().
|
protected |
Category mappings.
Definition at line 988 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\form(), initCategoryMappingForm(), initRule(), and showRulesTable().
Referenced by addCategoryMapping(), deleteCategoryMappings(), editCategoryMapping(), and updateCategoryMapping().
ilECSSettingsGUI::communities | ( | ) |
show communities
Definition at line 571 of file class.ilECSSettingsGUI.php.
References $server, ILIAS\Repository\access(), ilECSServerSettings\ALL_SERVER, ILIAS\Repository\ctrl(), ILIAS\UICore\GlobalTemplate\get(), ilECSServerSettings\getInstance(), ilECSCommunityReader\getInstanceByServerId(), ILIAS\Repository\lng(), ILIAS\UICore\GlobalTemplate\parseCurrentBlock(), ILIAS\UICore\GlobalTemplate\setCurrentBlock(), ilTable2GUI\setTitle(), ILIAS\UICore\GlobalTemplate\setVariable(), and ILIAS\Repository\toolbar().
|
protected |
Definition at line 216 of file class.ilECSSettingsGUI.php.
References $settings, ILIAS\Repository\ctrl(), initSettings(), ILIAS\Repository\lng(), and ilECSSetting\save().
|
protected |
Create new settings.
Definition at line 184 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), initSettings(), initSettingsForm(), and ILIAS\Repository\lng().
|
protected |
activate server
Definition at line 145 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), initSettings(), ILIAS\Repository\lng(), and settings().
|
protected |
Delete confirmation.
Definition at line 231 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), initSettings(), ILIAS\Repository\lng(), and settings().
|
protected |
Delete selected category mappings.
Definition at line 1133 of file class.ilECSSettingsGUI.php.
References categoryMapping(), ilECSCategoryMappingRule\delete(), and ILIAS\Repository\lng().
|
protected |
Do delete.
Definition at line 254 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), initSettings(), ILIAS\Repository\lng(), and settings().
|
protected |
Edit server setting.
Definition at line 201 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), ILIAS\Repository\form(), initSettings(), initSettingsForm(), and ILIAS\Repository\lng().
Referenced by update().
|
protected |
Edit category mapping.
Definition at line 1057 of file class.ilECSSettingsGUI.php.
References categoryMapping(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), initCategoryMappingForm(), initRule(), and ILIAS\Repository\lng().
Referenced by updateCategoryMapping().
ilECSSettingsGUI::executeCommand | ( | ) |
Execute command.
Definition at line 73 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and setSubTabs().
|
protected |
csv export of imported remote courses
Definition at line 1318 of file class.ilECSSettingsGUI.php.
References Vendor\Package\$e, ilUtil\_getObjectsByOperations(), ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilECSUtils\getAdvancedMDValuesForObjId(), ilECSDataMappingSettings\getInstanceByServerId(), ilECSCommunityReader\getInstanceByServerId(), ILIAS\FileDelivery\http(), IL_CAL_DATETIME, IL_CAL_UNIX, ILIAS\Repository\lng(), ilECSDataMappingSetting\MAPPING_IMPORT_RCRS, null, ILIAS\Filesystem\Stream\Streams\ofString(), settings(), and ILIAS\Repository\user().
|
protected |
Show mapping settings (EContent-Data <-> (Remote)Course.
Definition at line 806 of file class.ilECSSettingsGUI.php.
References $server, ilECSServerSettings\ALL_SERVER, ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), ilECSServerSettings\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByObjType(), initMappingsForm(), ILIAS\Repository\int(), ILIAS\Repository\lng(), setMappingTabs(), and ILIAS\Repository\toolbar().
|
protected |
export released
Definition at line 1474 of file class.ilECSSettingsGUI.php.
References ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilECSUtils\getAdvancedMDValuesForObjId(), ilECSExportManager\getInstance(), ilECSDataMappingSettings\getInstanceByServerId(), ILIAS\FileDelivery\http(), IL_CAL_DATETIME, IL_CAL_UNIX, ILIAS\Repository\lng(), ILIAS\Filesystem\Stream\Streams\ofString(), and settings().
|
protected |
Show imported materials.
Definition at line 1269 of file class.ilECSSettingsGUI.php.
References ilUtil\_getObjectsByOperations(), ILIAS\Repository\ctrl(), ilECSServerSettings\getInstance(), ilECSUtils\getPossibleRemoteTypes(), ILIAS\Repository\lng(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
Referenced by readAll().
ilECSSettingsGUI::importMappings | ( | ) |
Show mapping settings (EContent-Data <-> (Remote)Course.
Definition at line 765 of file class.ilECSSettingsGUI.php.
References $server, ilECSServerSettings\ALL_SERVER, ILIAS\Repository\ctrl(), ilPropertyFormGUI\getHTML(), ilECSServerSettings\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByObjType(), initMappingsForm(), ILIAS\Repository\int(), ILIAS\Repository\lng(), setMappingTabs(), and ILIAS\Repository\toolbar().
|
protected |
Init category mapping form.
Definition at line 1175 of file class.ilECSSettingsGUI.php.
References $duration, buildPath(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\UICore\GlobalTemplate\get(), ilECSCategoryMapping\getPossibleFields(), ilECSUtils\getPossibleRemoteTypes(), ILIAS\Repository\lng(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilRadioGroupInputGUI\setValue(), ilSelectInputGUI\setValue(), ILIAS\UICore\GlobalTemplate\setVariable(), ilECSCategoryMappingRule\TYPE_BY_TYPE, ilECSCategoryMappingRule\TYPE_DURATION, and ilECSCategoryMappingRule\TYPE_FIXED.
Referenced by addCategoryMapping(), categoryMapping(), editCategoryMapping(), and updateCategoryMapping().
|
protected |
init mapping form
Definition at line 891 of file class.ilECSSettingsGUI.php.
References $form, $server, ilECSUtils\_getOptionalEContentFields(), ilECSUtils\_getOptionalECourseFields(), ilPropertyFormGUI\addCommandButton(), ilPropertyFormGUI\addItem(), ILIAS\Repository\ctrl(), ilECSDataMappingSettings\getInstanceByServerId(), ilAdvancedMDFieldDefinition\getInstancesByObjType(), ILIAS\Repository\lng(), ilECSDataMappingSetting\MAPPING_EXPORT, ilECSDataMappingSetting\MAPPING_IMPORT_CRS, ilECSDataMappingSetting\MAPPING_IMPORT_RCRS, prepareFieldSelection(), ilFormGUI\setFormAction(), ilPropertyFormGUI\setTitle(), and ilSelectInputGUI\setValue().
Referenced by exportMappings(), and importMappings().
|
protected |
Init rule.
int | $rule_id | rule id |
Definition at line 1163 of file class.ilECSSettingsGUI.php.
Referenced by addCategoryMapping(), categoryMapping(), editCategoryMapping(), and updateCategoryMapping().
|
protected |
Init settings.
Definition at line 1577 of file class.ilECSSettingsGUI.php.
References ilECSSetting\getInstanceByServerId(), and settings().
Referenced by __construct(), activate(), cp(), create(), deactivate(), delete(), doDelete(), edit(), save(), and update().
|
protected |
init settings form
Definition at line 277 of file class.ilECSSettingsGUI.php.
References $duration, $path, ilECSSetting\AUTH_APACHE, ilECSSetting\AUTH_CERTIFICATE, buildPath(), ILIAS\Repository\ctrl(), ILIAS\Repository\form(), ILIAS\UICore\GlobalTemplate\get(), ILIAS\Repository\lng(), prepareRoleSelect(), ilECSSetting\PROTOCOL_HTTPS, ilSelectInputGUI\setOptions(), ilPasswordInputGUI\setRetype(), settings(), ilRadioGroupInputGUI\setValue(), and ILIAS\UICore\GlobalTemplate\setVariable().
Referenced by create(), edit(), and settings().
|
protected |
Load from post.
Definition at line 519 of file class.ilECSSettingsGUI.php.
References settings(), and ilUtil\stripSlashes().
Referenced by save(), and update().
ilECSSettingsGUI::overview | ( | ) |
List available servers.
Definition at line 112 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilECSServerSettings\getInstance(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
Referenced by update().
|
protected |
get options for field selection
array | array of field objects |
Definition at line 1562 of file class.ilECSSettingsGUI.php.
References ilAdvancedMDRecord\_lookupTitle(), and ILIAS\Repository\lng().
Referenced by initMappingsForm().
|
private |
get global role array
Definition at line 1634 of file class.ilECSSettingsGUI.php.
References ilObject\_lookupTitle(), ilUtil\_sortIds(), and ILIAS\Repository\lng().
Referenced by initSettingsForm().
|
protected |
Read all importable econtent.
Definition at line 157 of file class.ilECSSettingsGUI.php.
References $server, ilECSTaskScheduler\_getInstanceByServerId(), ilECSServerSettings\ACTIVE_SERVER, ilECSServerSettings\getInstance(), imported(), and ILIAS\Repository\lng().
|
protected |
Refresh participants.
Definition at line 546 of file class.ilECSSettingsGUI.php.
References Vendor\Package\$e, $server, ilECSServerSettings\ALL_SERVER, ILIAS\Repository\ctrl(), ilECSParticipantSetting\delete(), ilECSServerSettings\getInstance(), ilECSParticipantSettings\getInstanceByServerId(), ilECSCommunityReader\getInstanceByServerId(), and ILIAS\Repository\lng().
|
protected |
Show released materials.
Definition at line 1427 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), ilECSExportManager\getInstance(), ilECSUtils\getPossibleReleaseTypes(), ILIAS\Repository\lng(), settings(), and ILIAS\Repository\toolbar().
|
protected |
Save settings.
Definition at line 475 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), initSettings(), ILIAS\Repository\lng(), loadFromPost(), and settings().
|
protected |
Save mappings.
Definition at line 869 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
|
protected |
Save mappings.
Definition at line 847 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
|
protected |
Handle tabs for ECS data mapping.
Definition at line 728 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ILIAS\Repository\lng().
Referenced by exportMappings(), and importMappings().
|
protected |
set sub tabs
Definition at line 1585 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), and ilECSServerSettings\getInstance().
Referenced by executeCommand().
|
protected |
show settings
Definition at line 266 of file class.ilECSSettingsGUI.php.
References ILIAS\Repository\form(), and initSettingsForm().
Referenced by activate(), deactivate(), delete(), doDelete(), exportImported(), exportReleased(), initSettings(), initSettingsForm(), loadFromPost(), released(), save(), update(), and updateTitle().
|
protected |
Show rules table.
Definition at line 1152 of file class.ilECSSettingsGUI.php.
References ilECSCategoryMapping\getActiveRules().
Referenced by categoryMapping().
|
protected |
save settings
Definition at line 456 of file class.ilECSSettingsGUI.php.
References edit(), initSettings(), ILIAS\Repository\lng(), loadFromPost(), overview(), and settings().
|
protected |
update category mapping
Definition at line 1077 of file class.ilECSSettingsGUI.php.
References categoryMapping(), ILIAS\Repository\ctrl(), editCategoryMapping(), ILIAS\Repository\form(), initCategoryMappingForm(), initRule(), ILIAS\Repository\lng(), ilECSCategoryMappingRule\TYPE_BY_TYPE, ilECSCategoryMappingRule\TYPE_DURATION, and ilECSCategoryMappingRule\TYPE_FIXED.
|
protected |
update whitelist
Definition at line 663 of file class.ilECSSettingsGUI.php.
References Vendor\Package\$e, $server, ilECSServerSettings\ACTIVE_SERVER, ILIAS\Repository\ctrl(), ilECSServerSettings\getInstance(), ilECSCommunityCache\getInstance(), ilECSCommunityReader\getInstanceByServerId(), ILIAS\Repository\lng(), and validateImportTypes().
|
protected |
Update configuration title.
Definition at line 494 of file class.ilECSSettingsGUI.php.
References ilECSCommunityReader\getInstanceByServerId(), and settings().
|
protected |
Validate import types.
array | $import_types |
Definition at line 632 of file class.ilECSSettingsGUI.php.
References $server, ilECSParticipantSetting\IMPORT_CMS, and ilECSParticipantSetting\IMPORT_UNCHANGED.
Referenced by updateCommunities().
|
private |
Definition at line 39 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 35 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 46 of file class.ilECSSettingsGUI.php.
Referenced by initMappingsForm().
|
private |
Definition at line 43 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 34 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 32 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 41 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 37 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 47 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 44 of file class.ilECSSettingsGUI.php.
Referenced by cp().
|
private |
Definition at line 36 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 40 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 33 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 38 of file class.ilECSSettingsGUI.php.
|
private |
Definition at line 42 of file class.ilECSSettingsGUI.php.
const ilECSSettingsGUI::MAPPING_EXPORT = 1 |
Definition at line 29 of file class.ilECSSettingsGUI.php.
const ilECSSettingsGUI::MAPPING_IMPORT = 2 |
Definition at line 30 of file class.ilECSSettingsGUI.php.