ILIAS
release_8 Revision v8.19
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning GUI class for LTI provider object settings.
Definition at line 27 of file class.ilLTIProviderObjectSettingGUI.php.
ilLTIProviderObjectSettingGUI::__construct | ( | int | $a_ref_id | ) |
int | ref_id |
Definition at line 73 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 403 of file class.ilLTIProviderObjectSettingGUI.php.
References $rbacAdmin, $ref_id, $type, ilObject\_getIdsForTitle(), ilRbacReview\_getOperationIdsByName(), ilObject\_lookupObjectId(), and ilObject\_lookupType().
Referenced by setCustomRolesForSelection().
ilLTIProviderObjectSettingGUI::executeCommand | ( | ) |
Ctrl execute command.
Definition at line 129 of file class.ilLTIProviderObjectSettingGUI.php.
References ILIAS\Repository\ctrl().
|
protected |
Get role selection.
Definition at line 389 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 92 of file class.ilLTIProviderObjectSettingGUI.php.
References ilObject\_lookupType(), ILIAS\Repository\logger(), and ilObjLTIAdministration\lookupLTISettingsRefId().
|
protected |
Init object settings form.
Definition at line 157 of file class.ilLTIProviderObjectSettingGUI.php.
References ILIAS\LTI\ToolProvider\$key, $ref_id, ILIAS\LTI\ToolProvider\$secret, $url, $version, ilObject\_lookupType(), CLIENT_ID, ILIAS\Repository\ctrl(), ilLTIPlatform\fromGlobalSettingsAndRefId(), getRoleSelection(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), ILIAS\LTI\ToolProvider\Util\LTI_VERSION1, ILIAS\LTI\ToolProvider\Util\LTI_VERSION1P3, ilFormPropertyGUI\setInfo(), and ilRadioOption\setValue().
Referenced by settings(), and updateSettings().
ilLTIProviderObjectSettingGUI::offerLTIRolesForSelection | ( | bool | $a_stat | ) |
Offer LTI roles for mapping.
Definition at line 120 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Save role selection for consumer.
ilPropertyFormGUI | $form | |
string | $global_consumer_id |
Definition at line 366 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 108 of file class.ilLTIProviderObjectSettingGUI.php.
References checkLocalRole().
Referenced by ilObjContentObjectGUI\checkCtrlPath(), ilObjSAHSLearningModuleGUI\executeCommand(), ilObjGroupGUI\executeCommand(), ilObjWikiGUI\executeCommand(), ilObjSurveyGUI\executeCommand(), ilObjTestGUI\executeCommand(), and ilObjCourseGUI\executeCommand().
|
protected |
Show settings.
ilPropertyFormGUI | $form |
Definition at line 145 of file class.ilLTIProviderObjectSettingGUI.php.
References initObjectSettingsForm().
Referenced by updateSettings().
|
protected |
Update settings (activate deactivate lti access)
Definition at line 290 of file class.ilLTIProviderObjectSettingGUI.php.
References $ref_id, ilObject\_lookupType(), ILIAS\Repository\ctrl(), ilLTIPlatform\fromGlobalSettingsAndRefId(), initObjectSettingsForm(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), saveRoleSelection(), and settings().
|
protected |
Definition at line 36 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 59 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 46 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 41 of file class.ilLTIProviderObjectSettingGUI.php.
|
private |
Definition at line 68 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by checkLocalRole().
|
private |
Definition at line 67 of file class.ilLTIProviderObjectSettingGUI.php.
|
private |
Definition at line 66 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 53 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by checkLocalRole(), initObjectSettingsForm(), and updateSettings().
|
protected |
Definition at line 48 of file class.ilLTIProviderObjectSettingGUI.php.
|
protected |
Definition at line 64 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_ADMIN = 'admin' |
Definition at line 29 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_MEMBER = 'member' |
Definition at line 31 of file class.ilLTIProviderObjectSettingGUI.php.
const ilLTIProviderObjectSettingGUI::ROLE_TUTOR = 'tutor' |
Definition at line 30 of file class.ilLTIProviderObjectSettingGUI.php.