From 164dad35c9b8ac5695a6e25b8960b0bf232dc3c6 Mon Sep 17 00:00:00 2001 From: Marvin Barz Date: Wed, 23 Feb 2022 11:09:17 +0100 Subject: [PATCH] BT-28791: Added Screen-IDs to orgu user and course list --- .../classes/ListCourses/class.ilMStListCoursesGUI.php | 8 ++++++++ .../MyStaff/classes/ListUsers/class.ilMStListUsersGUI.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/Services/MyStaff/classes/ListCourses/class.ilMStListCoursesGUI.php b/Services/MyStaff/classes/ListCourses/class.ilMStListCoursesGUI.php index 6bfa6d58a0bd..07873179960c 100644 --- a/Services/MyStaff/classes/ListCourses/class.ilMStListCoursesGUI.php +++ b/Services/MyStaff/classes/ListCourses/class.ilMStListCoursesGUI.php @@ -25,6 +25,10 @@ class ilMStListCoursesGUI * @var ilMyStaffAccess */ protected $access; + /** + * @var ilHelp + */ + protected $help; /** @@ -32,7 +36,10 @@ class ilMStListCoursesGUI */ public function __construct() { + global $DIC; $this->access = ilMyStaffAccess::getInstance(); + $this->help = $DIC->help(); + $this->help->setScreenIdComponent('msta'); } @@ -105,6 +112,7 @@ public function listUsers() global $DIC; $this->checkAccessOrFail(); + $this->help->setScreenId('courses_list'); $this->table = new ilMStListCoursesTableGUI($this, self::CMD_INDEX); $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt('mst_list_courses')); diff --git a/Services/MyStaff/classes/ListUsers/class.ilMStListUsersGUI.php b/Services/MyStaff/classes/ListUsers/class.ilMStListUsersGUI.php index 976468b2f145..ad2f50230199 100644 --- a/Services/MyStaff/classes/ListUsers/class.ilMStListUsersGUI.php +++ b/Services/MyStaff/classes/ListUsers/class.ilMStListUsersGUI.php @@ -25,6 +25,10 @@ class ilMStListUsersGUI * @var ilMyStaffAccess */ protected $access; + /** + * @var ilHelp + */ + protected $help; /** @@ -32,7 +36,10 @@ class ilMStListUsersGUI */ public function __construct() { + global $DIC; $this->access = ilMyStaffAccess::getInstance(); + $this->help = $DIC->help(); + $this->help->setScreenIdComponent('msta'); } @@ -94,6 +101,7 @@ public function listUsers() { global $DIC; + $this->help->setScreenId('users_list'); $this->table = new ilMStListUsersTableGUI($this, self::CMD_INDEX); $DIC->ui()->mainTemplate()->setTitle($DIC->language()->txt('mst_list_users')); $DIC->ui()->mainTemplate()->setContent($this->table->getHTML());