ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
IdPresentation.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26use ilObjUser;
28
30{
31 protected \ilSetting $gdtr_admin_setting;
32
33 public function __construct(
34 protected InternalDomainService $domain
35 ) {
36 $this->gdtr_admin_setting = new \ilSetting("gdtr");
37 }
38
39 public function saveIdPresentationUsers(string $users): void
40 {
41 $this->gdtr_admin_setting->set("id_presentation_users", $users);
42 }
43
44 public function getIdPresentationUsers(): string
45 {
46 return $this->gdtr_admin_setting->get("id_presentation_users", "");
47 }
48
49 public function getValidIdPresentationUsers(): array
50 {
51 $valid_users = [];
52 foreach (explode(",", $this->getIdPresentationUsers()) as $user) {
53 if (\ilObjUser::_loginExists(trim($user))) {
54 $valid_users[] = trim($user);
55 }
56 }
57 return $valid_users;
58 }
59
60}
__construct(protected InternalDomainService $domain)
User class.
static _loginExists(string $a_login, int $a_user_id=0)
Interface ilDBInterface.