diff options
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 + ); + } } |
