ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct () | |
Constructor. More... | |
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 ilTabs $ilTabs. 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 (&$import_types) | |
Validate import types. More... | |
updateCommunities () | |
update whitelist More... | |
setMappingTabs ($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 ($a_server_id, $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 ($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 ($a_server_id=1) | |
Init settings. More... | |
setSubTabs () | |
set sub tabs More... | |
initTaskScheduler () | |
Init next task execution <type> $ilDB <type> $ilSetting. More... | |
Protected Attributes | |
$log = null | |
$tpl | |
$lng | |
$ctrl | |
$tabs_gui | |
Private Member Functions | |
prepareRoleSelect () | |
get global role array More... | |
buildPath ($a_ref_id) | |
ilECSSettingsGUI: ilECSMappingSettingsGUI, ilECSParticipantSettingsGUI
Definition at line 35 of file class.ilECSSettingsGUI.php.
ilECSSettingsGUI::__construct | ( | ) |
Constructor.
public
Definition at line 56 of file class.ilECSSettingsGUI.php.
References $DIC, $GLOBALS, $ilCtrl, $lng, $tpl, and initSettings().
|
protected |
activate server
Definition at line 163 of file class.ilECSSettingsGUI.php.
References initSettings(), and settings().
|
protected |
save category mapping
Definition at line 1203 of file class.ilECSSettingsGUI.php.
References categoryMapping(), initCategoryMappingForm(), initRule(), ilUtil\sendInfo(), ilECSCategoryMappingRule\TYPE_BY_TYPE, ilECSCategoryMappingRule\TYPE_DURATION, and ilECSCategoryMappingRule\TYPE_FIXED.
|
private |
int | $a_ref_id |
Definition at line 1921 of file class.ilECSSettingsGUI.php.
Referenced by initCategoryMappingForm(), and initSettingsForm().
|
protected |
Category mappings.
Definition at line 1184 of file class.ilECSSettingsGUI.php.
References $html, initCategoryMappingForm(), initRule(), and showRulesTable().
Referenced by addCategoryMapping(), deleteCategoryMappings(), editCategoryMapping(), and updateCategoryMapping().
ilECSSettingsGUI::communities | ( | ) |
show communities
public
Definition at line 681 of file class.ilECSSettingsGUI.php.
References $DIC, $GLOBALS, $reader, $server, ilECSServerSettings\getInstance(), ilECSCommunityReader\getInstanceByServerId(), and ilTable2GUI\setTitle().
|
protected |
Definition at line 263 of file class.ilECSSettingsGUI.php.
References initSettings().
|
protected |
Create new settings ilTabs $ilTabs.
Definition at line 223 of file class.ilECSSettingsGUI.php.
References $DIC, initSettings(), and initSettingsForm().
Referenced by save().
|
protected |
activate server
Definition at line 175 of file class.ilECSSettingsGUI.php.
References initSettings(), and settings().
|
protected |
Delete confirmation.
Definition at line 278 of file class.ilECSSettingsGUI.php.
References $DIC, initSettings(), and settings().
|
protected |
Delete selected category mappings.
Definition at line 1324 of file class.ilECSSettingsGUI.php.
References $_POST, $rule, categoryMapping(), and ilUtil\sendInfo().
|
protected |
Do delete.
Definition at line 306 of file class.ilECSSettingsGUI.php.
References ilECSCommunitiesCache\delete(), ilECSDataMappingSettings\delete(), ilECSParticipantSettings\deleteByServer(), ilECSExport\deleteByServer(), ilECSImport\deleteByServer(), ilECSEventQueueReader\deleteServer(), initSettings(), and settings().
|
protected |
Edit server setting.
Definition at line 244 of file class.ilECSSettingsGUI.php.
References $DIC, initSettings(), and initSettingsForm().
Referenced by update().
|
protected |
Edit category mapping.
Definition at line 1251 of file class.ilECSSettingsGUI.php.
References categoryMapping(), initCategoryMappingForm(), initRule(), and ilUtil\sendInfo().
Referenced by updateCategoryMapping().
ilECSSettingsGUI::executeCommand | ( | ) |
Execute command.
public
Definition at line 83 of file class.ilECSSettingsGUI.php.
References $DIC, and setSubTabs().
|
protected |
csv export of imported remote courses
protected
Definition at line 1544 of file class.ilECSSettingsGUI.php.
References $DIC, $ilUser, $reader, $values, ilECSDataMappingSettings\_getInstance(), ilECSCommunityReader\_getInstance(), ilUtil\_getObjectsByOperations(), ilObject\_lookupDescription(), ilRemoteObjectBase\_lookupMID(), ilObject\_lookupTitle(), ilUtil\deliverData(), ilECSUtils\getAdvancedMDValuesForObjId(), IL_CAL_DATETIME, IL_CAL_UNIX, and ilECSDataMappingSetting\MAPPING_IMPORT_RCRS.
|
protected |
Show mapping settings (EContent-Data <-> (Remote)Course.
protected
Definition at line 963 of file class.ilECSSettingsGUI.php.
References $_SESSION, $DIC, $form, PHPMailer\PHPMailer\$options, $server, $title, ilECSServerSettings\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByObjType(), initMappingsForm(), ilUtil\sendInfo(), and setMappingTabs().
|
protected |
export released
protected
Definition at line 1717 of file class.ilECSSettingsGUI.php.
References $DIC, $values, ilECSDataMappingSettings\_getInstance(), ilObject\_lookupDescription(), ilObject\_lookupTitle(), ilUtil\deliverData(), ilECSUtils\getAdvancedMDValuesForObjId(), ilECSExport\getExportedIds(), IL_CAL_DATETIME, and IL_CAL_UNIX.
|
protected |
Show imported materials.
protected
Definition at line 1482 of file class.ilECSSettingsGUI.php.
References $DIC, $ilUser, PHPMailer\PHPMailer\$options, ilUtil\_getObjectsByOperations(), ilECSServerSettings\getInstance(), and ilECSUtils\getPossibleRemoteTypes().
Referenced by readAll().
ilECSSettingsGUI::importMappings | ( | ) |
Show mapping settings (EContent-Data <-> (Remote)Course.
protected
Definition at line 904 of file class.ilECSSettingsGUI.php.
References $_SESSION, $DIC, $form, PHPMailer\PHPMailer\$options, $server, $title, ilECSServerSettings\getInstance(), ilAdvancedMDFieldDefinition\getInstancesByObjType(), initMappingsForm(), ilUtil\sendInfo(), and setMappingTabs().
|
protected |
Init category mapping form.
Definition at line 1377 of file class.ilECSSettingsGUI.php.
References $DIC, $ilDB, PHPMailer\PHPMailer\$options, $tpl, $type, buildPath(), ilECSCategoryMapping\getPossibleFields(), ilECSUtils\getPossibleRemoteTypes(), ilRadioOption\setInfo(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), settings(), ilTextInputGUI\setValue(), ilSelectInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), ilECSCategoryMappingRule\TYPE_BY_TYPE, ilECSCategoryMappingRule\TYPE_DURATION, and ilECSCategoryMappingRule\TYPE_FIXED.
Referenced by addCategoryMapping(), categoryMapping(), editCategoryMapping(), and updateCategoryMapping().
|
protected |
init mapping form
int | $a_server_id |
protected
Definition at line 1079 of file class.ilECSSettingsGUI.php.
References $form, PHPMailer\PHPMailer\$options, $server, ilECSUtils\_getOptionalEContentFields(), ilECSUtils\_getOptionalECourseFields(), ilECSDataMappingSettings\getInstanceByServerId(), ilAdvancedMDFieldDefinition\getInstancesByObjType(), ilECSDataMappingSetting\MAPPING_EXPORT, ilECSDataMappingSetting\MAPPING_IMPORT_CRS, ilECSDataMappingSetting\MAPPING_IMPORT_RCRS, prepareFieldSelection(), and ilSelectInputGUI\setValue().
Referenced by exportMappings(), and importMappings().
|
protected |
Init rule.
int | $rule_id | rule id |
Definition at line 1363 of file class.ilECSSettingsGUI.php.
References $rule.
Referenced by addCategoryMapping(), categoryMapping(), editCategoryMapping(), and updateCategoryMapping().
|
protected |
Init settings.
protected
Definition at line 1826 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
protected
Definition at line 353 of file class.ilECSSettingsGUI.php.
References $key, $pass, $path, $tpl, $user, ilECSSetting\AUTH_APACHE, ilECSSetting\AUTH_CERTIFICATE, buildPath(), prepareRoleSelect(), ilECSSetting\PROTOCOL_HTTPS, ilCheckboxInputGUI\setChecked(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), ilFormPropertyGUI\setRequired(), ilDurationInputGUI\setShowDays(), ilTextInputGUI\setSize(), settings(), ilTextInputGUI\setValue(), ilRadioGroupInputGUI\setValue(), and ilNonEditableValueGUI\setValue().
Referenced by create(), edit(), and settings().
|
protected |
Init next task execution <type> $ilDB <type> $ilSetting.
Definition at line 1942 of file class.ilECSSettingsGUI.php.
References $DIC, $ilDB, $ilSetting, and settings().
Referenced by save(), and update().
|
protected |
Load from post.
Definition at line 617 of file class.ilECSSettingsGUI.php.
References $_POST, settings(), and ilUtil\stripSlashes().
Referenced by save(), and update().
ilECSSettingsGUI::overview | ( | ) |
List available servers.
Definition at line 131 of file class.ilECSSettingsGUI.php.
References $DIC, $table, and ilECSServerSettings\getInstance().
Referenced by update().
|
protected |
get options for field selection
array | array of field objects protected |
Definition at line 1807 of file class.ilECSSettingsGUI.php.
References PHPMailer\PHPMailer\$options, $title, and ilAdvancedMDRecord\_lookupTitle().
Referenced by initMappingsForm().
|
private |
get global role array
protected
Definition at line 1896 of file class.ilECSSettingsGUI.php.
References $DIC, ilObject\_lookupTitle(), and ilUtil\_sortIds().
Referenced by initSettingsForm().
|
protected |
Read all importable econtent.
protected
Definition at line 189 of file class.ilECSSettingsGUI.php.
References $server, ilECSTaskScheduler\_getInstanceByServerId(), ilECSServerSettings\getInstance(), ilECSEventQueueReader\handleExportReset(), ilECSEventQueueReader\handleImportReset(), imported(), and ilUtil\sendInfo().
|
protected |
Refresh participants.
Definition at line 646 of file class.ilECSSettingsGUI.php.
References $server, ilECSParticipantSetting\delete(), ilECSParticipantSettings\getAvailabeMids(), ilECSServerSettings\getInstance(), ilECSCommunityReader\getInstanceByServerId(), and ilUtil\sendFailure().
|
protected |
Show released materials.
protected
Definition at line 1656 of file class.ilECSSettingsGUI.php.
References $DIC, $ilUser, PHPMailer\PHPMailer\$options, ilECSExport\getExportedIdsByType(), ilECSUtils\getPossibleReleaseTypes(), and settings().
|
protected |
Save settings.
Definition at line 569 of file class.ilECSSettingsGUI.php.
References $GLOBALS, create(), initSettings(), initTaskScheduler(), loadFromPost(), ilUtil\sendInfo(), and settings().
|
protected |
Save mappings.
protected
Definition at line 1050 of file class.ilECSSettingsGUI.php.
References $_POST, $map, $mtype, and ilUtil\sendInfo().
|
protected |
Save mappings.
protected
Definition at line 1023 of file class.ilECSSettingsGUI.php.
References $_POST, $map, $mtype, and ilUtil\sendInfo().
|
protected |
Handle tabs for ECS data mapping.
int | $a_active | ilTabsGUI ilTabs |
Definition at line 859 of file class.ilECSSettingsGUI.php.
References $DIC.
Referenced by exportMappings(), and importMappings().
|
protected |
set sub tabs
protected
Definition at line 1837 of file class.ilECSSettingsGUI.php.
References $DIC, and ilECSServerSettings\getInstance().
Referenced by executeCommand().
|
protected |
show settings
protected
Definition at line 340 of file class.ilECSSettingsGUI.php.
References initSettingsForm().
Referenced by activate(), deactivate(), delete(), doDelete(), initCategoryMappingForm(), initSettings(), initSettingsForm(), initTaskScheduler(), loadFromPost(), released(), save(), update(), and updateTitle().
|
protected |
Show rules table.
Definition at line 1345 of file class.ilECSSettingsGUI.php.
References ilECSCategoryMapping\getActiveRules().
Referenced by categoryMapping().
|
protected |
save settings
protected
Definition at line 546 of file class.ilECSSettingsGUI.php.
References edit(), initSettings(), initTaskScheduler(), loadFromPost(), overview(), ilUtil\sendInfo(), and settings().
|
protected |
update category mapping
Definition at line 1272 of file class.ilECSSettingsGUI.php.
References categoryMapping(), editCategoryMapping(), initCategoryMappingForm(), initRule(), ilUtil\sendInfo(), ilECSCategoryMappingRule\TYPE_BY_TYPE, ilECSCategoryMappingRule\TYPE_DURATION, and ilECSCategoryMappingRule\TYPE_FIXED.
|
protected |
update whitelist
protected
Definition at line 781 of file class.ilECSSettingsGUI.php.
References $_POST, $DIC, $GLOBALS, $ilLog, $server, ilECSServerSettings\getInstance(), ilECSCommunityCache\getInstance(), ilECSCommunityReader\getInstanceByServerId(), ilUtil\sendFailure(), and validateImportTypes().
|
protected |
Update configuration title.
Definition at line 591 of file class.ilECSSettingsGUI.php.
References $reader, ilECSCommunityReader\getInstanceByServerId(), ilUtil\sendFailure(), and settings().
|
protected |
Validate import types.
array | $import_types |
Definition at line 744 of file class.ilECSSettingsGUI.php.
References $server, ilECSParticipantSetting\IMPORT_CMS, and ilECSParticipantSetting\IMPORT_UNCHANGED.
Referenced by updateCommunities().
|
protected |
Definition at line 47 of file class.ilECSSettingsGUI.php.
|
protected |
Definition at line 46 of file class.ilECSSettingsGUI.php.
Referenced by __construct().
|
protected |
Definition at line 43 of file class.ilECSSettingsGUI.php.
|
protected |
Definition at line 48 of file class.ilECSSettingsGUI.php.
|
protected |
Definition at line 45 of file class.ilECSSettingsGUI.php.
Referenced by __construct(), initCategoryMappingForm(), and initSettingsForm().
const ilECSSettingsGUI::MAPPING_EXPORT = 1 |
Definition at line 37 of file class.ilECSSettingsGUI.php.
const ilECSSettingsGUI::MAPPING_IMPORT = 2 |
Definition at line 38 of file class.ilECSSettingsGUI.php.