|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
The tab of an ILIAS object that releases it to the platforms allowed for its type, with the local roles the users of each platform get. More...
Collaboration diagram for ilLTIProviderObjectSettingGUI:Public Member Functions | |
| __construct (private readonly int $ref_id) | |
| hasSettingsAccess () | |
| True when the object can be released to some platform and the user may release objects. More... | |
| setCustomRolesForSelection (array $role_ids) | |
| An object without local roles gets LTI roles of its own, when the administration has created the global LTI role. More... | |
| offerLTIRolesForSelection (bool $offer) | |
| Kept for the objects that call it, the roles offered are always the ones given above. More... | |
| executeCommand () | |
Data Fields | |
| const string | CMD_SHOW = 'settings' |
| const string | CMD_SAVE = 'updateSettings' |
Private Member Functions | |
| show (?Form $form=null) | |
| save () | |
| buildForm () | |
| One optional group per platform: releasing the object to it and the roles its users get. More... | |
| getPlatforms () | |
| The platforms the object can be released to. More... | |
| isAdvantage (int $platform_id) | |
| An LTI Advantage platform is registered once for all the objects released to it, so releasing an object only sets the roles. More... | |
| createLocalRoles () | |
| createLocalRole (string $title, string $description, string $type, array $operations) | |
Private Attributes | |
| readonly ILIAS DI Container | $dic |
| array | $roles = [] |
The tab of an ILIAS object that releases it to the platforms allowed for its type, with the local roles the users of each platform get.
The name and the methods are fixed: the objects that can be released (courses, groups, tests, ...) create this class, add its tab and forward to it.
Definition at line 32 of file class.ilLTIProviderObjectSettingGUI.php.
| ilLTIProviderObjectSettingGUI::__construct | ( | private readonly int | $ref_id | ) |
Definition at line 43 of file class.ilLTIProviderObjectSettingGUI.php.
References $DIC.
|
private |
One optional group per platform: releasing the object to it and the roles its users get.
| ilCtrlException |
Definition at line 148 of file class.ilLTIProviderObjectSettingGUI.php.
References ILIAS\UI\Implementation\Component\Input\$inputs, $lng, ILIAS\UI\Implementation\Component\Input\Field\$options, $roles, ilObjRole\_getTranslation(), ilObject\_lookupTitle(), getPlatforms(), ilLTIEndpoint\getUrl(), isAdvantage(), and ilLTIEndpoint\LAUNCH.
Referenced by save().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| string | $title | |
| string | $description | |
| string | $type | |
| array | $operations |
Definition at line 252 of file class.ilLTIProviderObjectSettingGUI.php.
References ilRbacReview\_getOperationIdsByName(), and ilObject\_lookupObjectId().
Referenced by createLocalRoles().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 224 of file class.ilLTIProviderObjectSettingGUI.php.
References ilObject\_getIdsForTitle(), ilObject\_lookupType(), and createLocalRole().
Referenced by setCustomRolesForSelection().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIProviderObjectSettingGUI::executeCommand | ( | ) |
| ilCtrlException |
Definition at line 88 of file class.ilLTIProviderObjectSettingGUI.php.
References hasSettingsAccess(), save(), and show().
Here is the call graph for this function:
|
private |
The platforms the object can be released to.
Definition at line 197 of file class.ilLTIProviderObjectSettingGUI.php.
References ilObject\_lookupType(), and ilLTIRelease\getPlatformsForType().
Referenced by buildForm(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIProviderObjectSettingGUI::hasSettingsAccess | ( | ) |
True when the object can be released to some platform and the user may release objects.
Definition at line 54 of file class.ilLTIProviderObjectSettingGUI.php.
References ilObject\_lookupType(), ilLTIRelease\getPlatformsForType(), and ilObjLTIAdministrationAccess\lookupRefId().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
An LTI Advantage platform is registered once for all the objects released to it, so releasing an object only sets the roles.
An LTI 1.1 platform gets a registration with a key and secret per object. Earlier releases let each object choose, so an object that has a registration of its own keeps its version, whatever the other objects of the platform use.
Definition at line 208 of file class.ilLTIProviderObjectSettingGUI.php.
References $version, ilLTIPlatform\lookupVersion(), and ilLTITool\VERSION_ADVANTAGE.
Referenced by buildForm(), and save().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIProviderObjectSettingGUI::offerLTIRolesForSelection | ( | bool | $offer | ) |
Kept for the objects that call it, the roles offered are always the ones given above.
Definition at line 81 of file class.ilLTIProviderObjectSettingGUI.php.
|
private |
| ilCtrlException |
Definition at line 112 of file class.ilLTIProviderObjectSettingGUI.php.
References $data, buildForm(), ilLTIRelease\delete(), getPlatforms(), isAdvantage(), ilLTI1p1ProviderObjectCredentials\save(), ilLTIRelease\save(), and show().
Referenced by executeCommand().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLTIProviderObjectSettingGUI::setCustomRolesForSelection | ( | array | $role_ids | ) |
An object without local roles gets LTI roles of its own, when the administration has created the global LTI role.
| array | $role_ids |
Definition at line 69 of file class.ilLTIProviderObjectSettingGUI.php.
References createLocalRoles().
Here is the call graph for this function:
|
private |
| ilCtrlException |
Definition at line 104 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by executeCommand(), and save().
Here is the caller graph for this function:
|
private |
Definition at line 37 of file class.ilLTIProviderObjectSettingGUI.php.
|
private |
Definition at line 41 of file class.ilLTIProviderObjectSettingGUI.php.
Referenced by buildForm().
| const string ilLTIProviderObjectSettingGUI::CMD_SAVE = 'updateSettings' |
Definition at line 35 of file class.ilLTIProviderObjectSettingGUI.php.
| const string ilLTIProviderObjectSettingGUI::CMD_SHOW = 'settings' |
Definition at line 34 of file class.ilLTIProviderObjectSettingGUI.php.