ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPRGUserInformation.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
25 {
26  public const COLNAMES = [
27  'firstname',
28  'lastname',
29  'login',
30  'active',
31  'email',
32  'gender',
33  'title',
34  ];
35 
37  protected string $orgu_repr;
38  protected string $firstname;
39  protected string $lastname;
40  protected bool $active;
41  protected string $login;
42  protected string $email;
43  protected string $gender;
44  protected string $title;
45 
46  public function __construct(
47  ilUserDefinedData $udf,
48  string $orgu_repr,
49  string $firstname,
50  string $lastname,
51  string $login,
52  bool $active,
53  string $email,
54  string $gender,
55  string $title
56  ) {
57  $this->udf = $udf;
58  $this->orgu_repr = $orgu_repr;
59  $this->firstname = $firstname;
60  $this->lastname = $lastname;
61  $this->active = $active;
62  $this->login = $login;
63  $this->email = $email;
64  $this->gender = $gender;
65  $this->title = $title;
66  }
67 
68  public function getFirstname(): string
69  {
70  return $this->firstname;
71  }
72  public function getLastname(): string
73  {
74  return $this->lastname;
75  }
76  public function isActive(): bool
77  {
78  return $this->active;
79  }
80  public function getEmail(): string
81  {
82  return $this->email;
83  }
84  public function getLogin(): string
85  {
86  return $this->login;
87  }
88  public function getOrguRepresentation(): string
89  {
90  return $this->orgu_repr;
91  }
92  public function getUdf(string $field)
93  {
94  return $this->udf->get($field);
95  }
96  public function getAllUdf(): ilUserDefinedData
97  {
98  return $this->udf;
99  }
100 
101  public function getFullname(): string
102  {
103  return $this->lastname . ', ' . $this->firstname;
104  }
105  public function getGender(): string
106  {
107  return $this->gender;
108  }
109  public function getTitle(): string
110  {
111  return $this->title;
112  }
113 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilUserDefinedData $udf, string $orgu_repr, string $firstname, string $lastname, string $login, bool $active, string $email, string $gender, string $title)