diff options
| author | Murtaza Sultani <sultani@data-quest.de> | 2026-01-06 12:50:37 +0100 |
|---|---|---|
| committer | Murtaza Sultani <sultani@data-quest.de> | 2026-03-19 17:34:49 +0100 |
| commit | 1dff8c07dbcf12a9a1ef878d3db2d53274ffb766 (patch) | |
| tree | 010ded65993b5d809d1f7b95cf5bd60016d0794c /lib/modules/LtiToolModule.php | |
| parent | 62852255073feb84effdf3a83878f947020fc46b (diff) | |
Refactor Deeplinking implementation
Diffstat (limited to 'lib/modules/LtiToolModule.php')
| -rw-r--r-- | lib/modules/LtiToolModule.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/modules/LtiToolModule.php b/lib/modules/LtiToolModule.php index 906eb1b..5b1f248 100644 --- a/lib/modules/LtiToolModule.php +++ b/lib/modules/LtiToolModule.php @@ -1,6 +1,7 @@ <?php use Lti\Grade; +use Lti\ResourceLink; /** * LtiToolModule.php - LTI consumer API for Stud.IP @@ -32,7 +33,7 @@ class LtiToolModule extends CorePlugin implements StudipModule, SystemPlugin, Pr }); NotificationCenter::on('CourseDidDelete', function ($event, $course) { - LtiResourceLink::deleteBySQL('course_id = ?', [$course->id]); + ResourceLink::deleteBySQL('course_id = ?', [$course->id]); }); } @@ -45,7 +46,7 @@ class LtiToolModule extends CorePlugin implements StudipModule, SystemPlugin, Pr return null; } - $changed = LtiResourceLink::countBySQL('course_id = ? AND chdate > ?', [$course_id, $last_visit]); + $changed = ResourceLink::countBySQL('course_id = ? AND chdate > ?', [$course_id, $last_visit]); $icon = Icon::create('plugin', $changed ? Icon::ROLE_NEW : Icon::ROLE_CLICKABLE); @@ -65,7 +66,7 @@ class LtiToolModule extends CorePlugin implements StudipModule, SystemPlugin, Pr return []; } - $grades = LtiResourceLink::countBySQL('course_id = ?', [$course_id]); + $grades = ResourceLink::countBySQL('course_id = ?', [$course_id]); $navigation = new Navigation(_('LTI')); $navigation->setImage(Icon::create('link-extern', Icon::ROLE_INFO_ALT)); |
