diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2025-04-10 12:46:32 +0200 |
|---|---|---|
| committer | Murtaza Sultani <sultani@data-quest.de> | 2025-09-11 16:20:06 +0200 |
| commit | 52b151dbe997c3d91c60473611c3a1cf442f9659 (patch) | |
| tree | 3c7f7ad923f639760e5a8fee32a07372c9b969e2 /lib/models/LtiPlatform.php | |
| parent | a44d881b5fe972fdb570a856078629a4d717f927 (diff) | |
added methods for a virtual global LTI toolstep-05405
Diffstat (limited to 'lib/models/LtiPlatform.php')
| -rw-r--r-- | lib/models/LtiPlatform.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/models/LtiPlatform.php b/lib/models/LtiPlatform.php index 6a76add..6fe431f 100644 --- a/lib/models/LtiPlatform.php +++ b/lib/models/LtiPlatform.php @@ -13,6 +13,8 @@ * @category Stud.IP */ +use OAT\Library\Lti1p3Core\Platform\Platform; + /** * The LtiPlatform class represents LTI 1.3A platforms that are using @@ -57,4 +59,15 @@ class LtiPlatform extends SimpleORMap ['platform_id' => $this->id] ); } + + public function getPlatformData() : Platform + { + return new Platform( + $this->id, + $this->name, + $this->url, + $this->oidc_init_url, + $this->oauth2_access_token_url + ); + } } |
