|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Collaboration diagram for ilLTIProviderObjectSettingGUI: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().
Here is the call graph for this function:
|
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, $type, ilObject\_getIdsForTitle(), ilRbacReview\_getOperationIdsByName(), ilObject\_lookupObjectId(), and ilObject\_lookupType().
Referenced by setCustomRolesForSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIProviderObjectSettingGUI::executeCommand | ( | ) |
Ctrl execute command.
Definition at line 129 of file class.ilLTIProviderObjectSettingGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:
|
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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Init object settings form.
Definition at line 157 of file class.ilLTIProviderObjectSettingGUI.php.
References ILIAS\LTI\ToolProvider\$key, ILIAS\LTI\ToolProvider\$secret, $url, $version, ilObject\_lookupType(), CLIENT_ID, ILIAS\Repository\ctrl(), ilLTIPlatform\fromGlobalSettingsAndRefId(), getRoleSelection(), ILIAS\Repository\lng(), and ILIAS\Repository\logger().
Referenced by settings(), and updateSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().
Here is the call graph for this function:
|
protected |
Show settings.
| ilPropertyFormGUI | $form |
Definition at line 145 of file class.ilLTIProviderObjectSettingGUI.php.
References initObjectSettingsForm().
Referenced by updateSettings().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Update settings (activate deactivate lti access)
Definition at line 290 of file class.ilLTIProviderObjectSettingGUI.php.
References ilObject\_lookupType(), ILIAS\Repository\ctrl(), ilLTIPlatform\fromGlobalSettingsAndRefId(), initObjectSettingsForm(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), saveRoleSelection(), and settings().
Here is the call graph for this function:
|
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.
|
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.