ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
GUI class for LTI provider object settings. More...
Public Member Functions | |
__construct ($a_ref_id) | |
hasSettingsAccess () | |
Check if user has access to lti settings. More... | |
setCustomRolesForSelection ($a_roles) | |
Set custom roles for mapping to LTI roles. More... | |
offerLTIRolesForSelection ($a_stat) | |
Offer LTI roles for mapping. More... | |
executeCommand () | |
Ctrl execute command. More... | |
Data Fields | |
const | ROLE_ADMIN = 'admin' |
const | ROLE_TUTOR = 'tutor' |
const | ROLE_MEMBER = 'member' |
Protected Member Functions | |
settings (ilPropertyFormGUI $form=null) | |
Show settings. More... | |
initObjectSettingsForm () | |
Init object settings form. More... | |
updateSettings () | |
Update settings (activate deactivate lti access) More... | |
saveRoleSelection (ilPropertyFormGUI $form, $global_consumer_id) | |
Save role selection for consumer. More... | |
getRoleSelection () | |
Get role selection. More... | |
Protected Attributes | |
$ctrl = null | |
$logger = null | |
$lng = null | |
$tpl = null | |
$ref_id = null | |
$custom_roles = [] | |
$use_lti_roles = true | |
GUI class for LTI provider object settings.
Definition at line 11 of file class.ilLTIProviderObjectSettingGUI.php.
ilLTIProviderObjectSettingGUI::__construct | ( | $a_ref_id | ) |
int | ref_id |
Definition at line 57 of file class.ilLTIProviderObjectSettingGUI.php.
References $GLOBALS.
ilLTIProviderObjectSettingGUI::executeCommand | ( | ) |
Ctrl execute command.
Definition at line 108 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Get role selection.
Definition at line 287 of file class.ilLTIProviderObjectSettingGUI.php.
References PHPMailer\PHPMailer\$options, $title, ilObjRole\_getTranslation(), and ilObject\_lookupTitle().
Referenced by initObjectSettingsForm().
ilLTIProviderObjectSettingGUI::hasSettingsAccess | ( | ) |
Check if user has access to lti settings.
int | ref_id |
int | user_id |
Definition at line 73 of file class.ilLTIProviderObjectSettingGUI.php.
References $GLOBALS, ilObject\_lookupType(), and ilObjLTIAdministration\lookupLTISettingsRefId().
|
protected |
Init object settings form.
Definition at line 136 of file class.ilLTIProviderObjectSettingGUI.php.
References $form, $GLOBALS, $key, $ref_id, $section, $url, ilObject\_lookupType(), ilLTIToolConsumer\fromGlobalSettingsAndRefId(), getRoleSelection(), ilFormPropertyGUI\setInfo(), ilSelectInputGUI\setOptions(), and ilNonEditableValueGUI\setValue().
Referenced by settings(), and updateSettings().
ilLTIProviderObjectSettingGUI::offerLTIRolesForSelection | ( | $a_stat | ) |
Offer LTI roles for mapping.
bool | $a_stat |
Definition at line 99 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Save role selection for consumer.
ilPropertyFormGUI | $form | |
type | $global_consumer_id |
Definition at line 263 of file class.ilLTIProviderObjectSettingGUI.php.
References ilPropertyFormGUI\getInput().
Referenced by updateSettings().
ilLTIProviderObjectSettingGUI::setCustomRolesForSelection | ( | $a_roles | ) |
Set custom roles for mapping to LTI roles.
type | $a_roles |
Definition at line 90 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by ilObjSAHSLearningModuleGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjContentObjectGUI\executeCommand(), ilObjTestGUI\executeCommand(), and ilObjCourseGUI\executeCommand().
|
protected |
Show settings.
ilPropertyFormGUI | $form |
Definition at line 124 of file class.ilLTIProviderObjectSettingGUI.php.
References $form, and initObjectSettingsForm().
Referenced by updateSettings().
|
protected |
Update settings (activate deactivate lti access)
Definition at line 217 of file class.ilLTIProviderObjectSettingGUI.php.
References $form, $ref_id, ilObject\_lookupType(), ilLTIToolConsumer\fromGlobalSettingsAndRefId(), initObjectSettingsForm(), saveRoleSelection(), and settings().
|
protected |
Definition at line 21 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 47 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 31 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 26 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 41 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by initObjectSettingsForm(), and updateSettings().
|
protected |
Definition at line 36 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 52 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_ADMIN = 'admin' |
Definition at line 13 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_MEMBER = 'member' |
Definition at line 15 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_TUTOR = 'tutor' |
Definition at line 14 of file class.ilLTIProviderObjectSettingGUI.php.