ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
GUI class for LTI provider object settings. More...
Public Member Functions | |
__construct (int $a_ref_id) | |
hasSettingsAccess () | |
Check if user has access to lti settings. More... | |
setCustomRolesForSelection (array $a_roles) | |
Set custom roles for mapping to LTI roles. More... | |
offerLTIRolesForSelection (bool $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, string $global_consumer_id) | |
Save role selection for consumer. More... | |
getRoleSelection () | |
Get role selection. More... | |
checkLocalRole () | |
check for local roles for lti objects which are not grp or crs More... | |
Protected Attributes | |
ilCtrl | $ctrl = null |
ilLogger | $logger = null |
ilLanguage | $lng = null |
ilGlobalPageTemplate | $tpl = null |
int | $ref_id = null |
array | $custom_roles = [] |
bool | $use_lti_roles = true |
Private Attributes | |
ilRbacSystem | $rbacSystem |
ilRbacReview | $rbacReview |
ilRbacAdmin | $rbacAdmin |
GUI class for LTI provider object settings.
Definition at line 30 of file class.ilLTIProviderObjectSettingGUI.php.
ilLTIProviderObjectSettingGUI::__construct | ( | int | $a_ref_id | ) |
int | ref_id |
Definition at line 76 of file class.ilLTIProviderObjectSettingGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ilLoggerFactory\getLogger(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
|
protected |
check for local roles for lti objects which are not grp or crs
Definition at line 401 of file class.ilLTIProviderObjectSettingGUI.php.
References $rbacAdmin, $ref_id, ilObject\_getIdsForTitle(), ilRbacReview\_getOperationIdsByName(), ilObject\_lookupObjectId(), and ilObject\_lookupType().
Referenced by setCustomRolesForSelection().
ilLTIProviderObjectSettingGUI::executeCommand | ( | ) |
Ctrl execute command.
Definition at line 132 of file class.ilLTIProviderObjectSettingGUI.php.
References ILIAS\Repository\ctrl().
|
protected |
Get role selection.
Definition at line 387 of file class.ilLTIProviderObjectSettingGUI.php.
References ilObjRole\_getTranslation(), ilObject\_lookupTitle(), and ILIAS\Repository\lng().
Referenced by initObjectSettingsForm().
ilLTIProviderObjectSettingGUI::hasSettingsAccess | ( | ) |
Check if user has access to lti settings.
Definition at line 95 of file class.ilLTIProviderObjectSettingGUI.php.
References ilObject\_lookupType(), ILIAS\Repository\logger(), and ilObjLTIAdministration\lookupLTISettingsRefId().
|
protected |
Init object settings form.
Definition at line 160 of file class.ilLTIProviderObjectSettingGUI.php.
References $ref_id, $url, $version, ilObject\_lookupType(), CLIENT_ID, ILIAS\Repository\ctrl(), ilLTIPlatform\fromGlobalSettingsAndRefId(), getRoleSelection(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ilSelectInputGUI\setOptions(), and ilRadioOption\setValue().
Referenced by settings(), and updateSettings().
ilLTIProviderObjectSettingGUI::offerLTIRolesForSelection | ( | bool | $a_stat | ) |
Offer LTI roles for mapping.
Definition at line 123 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Save role selection for consumer.
ilPropertyFormGUI | $form | |
string | $global_consumer_id |
Definition at line 364 of file class.ilLTIProviderObjectSettingGUI.php.
References ilPropertyFormGUI\getInput(), and ILIAS\Repository\int().
Referenced by updateSettings().
ilLTIProviderObjectSettingGUI::setCustomRolesForSelection | ( | array | $a_roles | ) |
Set custom roles for mapping to LTI roles.
array | $a_roles |
Definition at line 111 of file class.ilLTIProviderObjectSettingGUI.php.
References checkLocalRole().
Referenced by ilObjContentObjectGUI\checkCtrlPath(), ilObjSAHSLearningModuleGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), and ilObjCourseGUI\executeCommand().
|
protected |
Show settings.
ilPropertyFormGUI | $form |
Definition at line 148 of file class.ilLTIProviderObjectSettingGUI.php.
References initObjectSettingsForm().
Referenced by updateSettings().
|
protected |
Update settings (activate deactivate lti access)
Definition at line 288 of file class.ilLTIProviderObjectSettingGUI.php.
References $ref_id, ilObject\_lookupType(), ILIAS\Repository\ctrl(), ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from(), ilLTIPlatform\fromGlobalSettingsAndRefId(), initObjectSettingsForm(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), null, saveRoleSelection(), and settings().
Definition at line 39 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 62 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 49 of file class.ilLTIProviderObjectSettingGUI.php.
Definition at line 44 of file class.ilLTIProviderObjectSettingGUI.php.
|
private |
Definition at line 71 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by checkLocalRole().
|
private |
Definition at line 70 of file class.ilLTIProviderObjectSettingGUI.php.
|
private |
Definition at line 69 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 56 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by checkLocalRole(), initObjectSettingsForm(), and updateSettings().
|
protected |
Definition at line 51 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 67 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_ADMIN = 'admin' |
Definition at line 32 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_MEMBER = 'member' |
Definition at line 34 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_TUTOR = 'tutor' |
Definition at line 33 of file class.ilLTIProviderObjectSettingGUI.php.