ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\User\Profile\Data Class Reference
+ Collaboration diagram for ILIAS\User\Profile\Data:

Public Member Functions

 __construct (private ?int $id=null, private string $alias='', private ?ResourceIdentification $avatar_rid=null, private string $firstname='', private string $lastname='', private string $title='', private ?Genders $gender=null, private ?\DateTimeImmutable $birthday=null, private string $institution='', private string $department='', private string $street='', private string $city='', private string $zipcode='', private string $country='', private string $email='', private ?string $second_email=null, private string $phone_office='', private string $phone_home='', private string $phone_mobile='', private string $fax='', private string $matriculation='', private string $hobby='', private string $referral_comment='', private array $geo_coordinates=[], private array $additional_fields=[])
 
 getId ()
 
 withId (int $id)
 
 getAlias ()
 
 withAlias (string $alias)
 
 getAvatarRid ()
 
 withAvatarRid (?ResourceIdentification $avatar_rid)
 
 getFirstname ()
 
 withFirstname (string $firstname)
 
 getLastname ()
 
 withLastname (string $lastname)
 
 getTitle ()
 
 withTitle (string $title)
 
 getGender ()
 
 withGender (?Genders $gender)
 
 getBirthday ()
 
 withBirthday (?\DateTimeImmutable $birthday)
 
 getInstitution ()
 
 withInstitution (string $institution)
 
 getDepartment ()
 
 withDepartment (string $department)
 
 getStreet ()
 
 withStreet (string $street)
 
 getCity ()
 
 withCity (string $city)
 
 getZipcode ()
 
 withZipcode (string $zipcode)
 
 getCountry ()
 
 withCountry (string $country)
 
 getEmail ()
 
 withEmail (string $email)
 
 getSecondEmail ()
 
 withSecondEmail (?string $email)
 
 getPhoneOffice ()
 
 withPhoneOffice (string $phone)
 
 getPhoneHome ()
 
 withPhoneHome (string $phone)
 
 getPhoneMobile ()
 
 withPhoneMobile (string $phone)
 
 getFax ()
 
 withFax (string $fax)
 
 getMatriculation ()
 
 withMatriculation (string $matriculation)
 
 getHobby ()
 
 withHobby (string $hobby)
 
 getReferralComment ()
 
 withReferralComment (string $comment)
 
 getGeoCoordinates ()
 
 withGeoCoordinates (array $coordinates)
 
 getAdditionalFieldByIdentifier (string $identifier)
 
 withAdditionalFieldByIdentifier (string $identifier, mixed $value)
 
 getAdditionalFieldsStorageValues (\ilDBInterface $db)
 
 getSystemInformation ()
 
 withSystemInformation (array $system_information)
 

Private Attributes

array $system_information
 

Detailed Description

Definition at line 26 of file Data.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\User\Profile\Data::__construct ( private ?int  $id = null,
private string  $alias = '',
private ?ResourceIdentification  $avatar_rid = null,
private string  $firstname = '',
private string  $lastname = '',
private string  $title = '',
private ?Genders  $gender = null,
private ?\DateTimeImmutable  $birthday = null,
private string  $institution = '',
private string  $department = '',
private string  $street = '',
private string  $city = '',
private string  $zipcode = '',
private string  $country = '',
private string  $email = '',
private ?string  $second_email = null,
private string  $phone_office = '',
private string  $phone_home = '',
private string  $phone_mobile = '',
private string  $fax = '',
private string  $matriculation = '',
private string  $hobby = '',
private string  $referral_comment = '',
private array  $geo_coordinates = [],
private array  $additional_fields = [] 
)

Definition at line 30 of file Data.php.

56 {
57 }

Member Function Documentation

◆ getAdditionalFieldByIdentifier()

ILIAS\User\Profile\Data::getAdditionalFieldByIdentifier ( string  $identifier)

Definition at line 347 of file Data.php.

347 : mixed
348 {
349 return $this->additional_fields[$identifier] ?? null;
350 }

◆ getAdditionalFieldsStorageValues()

ILIAS\User\Profile\Data::getAdditionalFieldsStorageValues ( \ilDBInterface  $db)

Definition at line 359 of file Data.php.

359 : string
360 {
361 return rtrim(
362 array_reduce(
363 array_keys($this->additional_fields),
364 fn(string $c, string $field_id) => $c . array_reduce(
365 $this->additional_fields[$field_id],
366 fn(string $ci, string $value) => $ci . "({$db->quote($this->id, \ilDBConstants::T_INTEGER)}, "
367 . "{$db->quote($field_id, \ilDBConstants::T_TEXT)}, {$db->quote($value, \ilDBConstants::T_TEXT)}),",
368 ''
369 ),
370 ''
371 ),
372 ','
373 );
374 }
$c
Definition: deliver.php:25

References $c.

Referenced by ILIAS\User\Profile\DataRepository\storeAdditionalFields().

+ Here is the caller graph for this function:

◆ getAlias()

ILIAS\User\Profile\Data::getAlias ( )

Definition at line 71 of file Data.php.

71 : string
72 {
73 return $this->alias;
74 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getAvatarRid()

ILIAS\User\Profile\Data::getAvatarRid ( )

Definition at line 83 of file Data.php.

84 {
85 return $this->avatar_rid;
86 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getBirthday()

ILIAS\User\Profile\Data::getBirthday ( )

Definition at line 143 of file Data.php.

143 : ?\DateTimeImmutable
144 {
145 return $this->birthday;
146 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getCity()

ILIAS\User\Profile\Data::getCity ( )

Definition at line 191 of file Data.php.

191 : string
192 {
193 return $this->city;
194 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getCountry()

ILIAS\User\Profile\Data::getCountry ( )

Definition at line 215 of file Data.php.

215 : string
216 {
217 return $this->country;
218 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getDepartment()

ILIAS\User\Profile\Data::getDepartment ( )

Definition at line 167 of file Data.php.

167 : string
168 {
169 return $this->department;
170 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getEmail()

ILIAS\User\Profile\Data::getEmail ( )

Definition at line 227 of file Data.php.

227 : string
228 {
229 return $this->email;
230 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getFax()

ILIAS\User\Profile\Data::getFax ( )

Definition at line 287 of file Data.php.

287 : string
288 {
289 return $this->fax;
290 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getFirstname()

ILIAS\User\Profile\Data::getFirstname ( )

Definition at line 95 of file Data.php.

95 : string
96 {
97 return $this->firstname;
98 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getGender()

ILIAS\User\Profile\Data::getGender ( )

Definition at line 131 of file Data.php.

131 : ?Genders
132 {
133 return $this->gender;
134 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getGeoCoordinates()

ILIAS\User\Profile\Data::getGeoCoordinates ( )

Definition at line 335 of file Data.php.

335 : array
336 {
337 return $this->geo_coordinates;
338 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getHobby()

ILIAS\User\Profile\Data::getHobby ( )

Definition at line 311 of file Data.php.

311 : string
312 {
313 return $this->hobby;
314 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getId()

ILIAS\User\Profile\Data::getId ( )

Definition at line 59 of file Data.php.

59 : int
60 {
61 return $this->id;
62 }
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23

References $id.

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getInstitution()

ILIAS\User\Profile\Data::getInstitution ( )

Definition at line 155 of file Data.php.

155 : string
156 {
157 return $this->institution;
158 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getLastname()

ILIAS\User\Profile\Data::getLastname ( )

Definition at line 107 of file Data.php.

107 : string
108 {
109 return $this->lastname;
110 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getMatriculation()

ILIAS\User\Profile\Data::getMatriculation ( )

Definition at line 299 of file Data.php.

299 : string
300 {
301 return $this->matriculation;
302 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getPhoneHome()

ILIAS\User\Profile\Data::getPhoneHome ( )

Definition at line 263 of file Data.php.

263 : string
264 {
265 return $this->phone_home;
266 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getPhoneMobile()

ILIAS\User\Profile\Data::getPhoneMobile ( )

Definition at line 275 of file Data.php.

275 : string
276 {
277 return $this->phone_mobile;
278 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getPhoneOffice()

ILIAS\User\Profile\Data::getPhoneOffice ( )

Definition at line 251 of file Data.php.

251 : string
252 {
253 return $this->phone_office;
254 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getReferralComment()

ILIAS\User\Profile\Data::getReferralComment ( )

Definition at line 323 of file Data.php.

323 : string
324 {
325 return $this->referral_comment;
326 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getSecondEmail()

ILIAS\User\Profile\Data::getSecondEmail ( )

Definition at line 239 of file Data.php.

239 : ?string
240 {
241 return $this->second_email;
242 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getStreet()

ILIAS\User\Profile\Data::getStreet ( )

Definition at line 179 of file Data.php.

179 : string
180 {
181 return $this->street;
182 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getSystemInformation()

ILIAS\User\Profile\Data::getSystemInformation ( )

Definition at line 376 of file Data.php.

376 : array
377 {
379 }
array $system_information
Definition: Data.php:28

References ILIAS\User\Profile\Data\$system_information.

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getTitle()

ILIAS\User\Profile\Data::getTitle ( )

Definition at line 119 of file Data.php.

119 : string
120 {
121 return $this->title;
122 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ getZipcode()

ILIAS\User\Profile\Data::getZipcode ( )

Definition at line 203 of file Data.php.

203 : string
204 {
205 return $this->zipcode;
206 }

Referenced by ILIAS\User\Profile\DataRepository\store().

+ Here is the caller graph for this function:

◆ withAdditionalFieldByIdentifier()

ILIAS\User\Profile\Data::withAdditionalFieldByIdentifier ( string  $identifier,
mixed  $value 
)

Definition at line 352 of file Data.php.

352 : self
353 {
354 $clone = clone $this;
355 $clone->additional_fields[$identifier] = $value;
356 return $clone;
357 }

◆ withAlias()

ILIAS\User\Profile\Data::withAlias ( string  $alias)

Definition at line 76 of file Data.php.

76 : self
77 {
78 $clone = clone $this;
79 $clone->alias = $alias;
80 return $clone;
81 }

◆ withAvatarRid()

ILIAS\User\Profile\Data::withAvatarRid ( ?ResourceIdentification  $avatar_rid)

Definition at line 88 of file Data.php.

88 : self
89 {
90 $clone = clone $this;
91 $clone->avatar_rid = $this->avatar_rid;
92 return $clone;
93 }

◆ withBirthday()

ILIAS\User\Profile\Data::withBirthday ( ?\DateTimeImmutable  $birthday)

Definition at line 148 of file Data.php.

148 : self
149 {
150 $clone = clone $this;
151 $clone->birthday = $birthday;
152 return $clone;
153 }

◆ withCity()

ILIAS\User\Profile\Data::withCity ( string  $city)

Definition at line 196 of file Data.php.

196 : self
197 {
198 $clone = clone $this;
199 $clone->city = $city;
200 return $clone;
201 }

◆ withCountry()

ILIAS\User\Profile\Data::withCountry ( string  $country)

Definition at line 220 of file Data.php.

220 : self
221 {
222 $clone = clone $this;
223 $clone->country = $country;
224 return $clone;
225 }

◆ withDepartment()

ILIAS\User\Profile\Data::withDepartment ( string  $department)

Definition at line 172 of file Data.php.

172 : self
173 {
174 $clone = clone $this;
175 $clone->department = $department;
176 return $clone;
177 }

◆ withEmail()

ILIAS\User\Profile\Data::withEmail ( string  $email)

Definition at line 232 of file Data.php.

232 : self
233 {
234 $clone = clone $this;
235 $clone->email = $email;
236 return $clone;
237 }

◆ withFax()

ILIAS\User\Profile\Data::withFax ( string  $fax)

Definition at line 292 of file Data.php.

292 : self
293 {
294 $clone = clone $this;
295 $clone->fax = $fax;
296 return $clone;
297 }

◆ withFirstname()

ILIAS\User\Profile\Data::withFirstname ( string  $firstname)

Definition at line 100 of file Data.php.

100 : self
101 {
102 $clone = clone $this;
103 $clone->firstname = $firstname;
104 return $clone;
105 }

◆ withGender()

ILIAS\User\Profile\Data::withGender ( ?Genders  $gender)

Definition at line 136 of file Data.php.

136 : self
137 {
138 $clone = clone $this;
139 $clone->gender = $gender;
140 return $clone;
141 }

◆ withGeoCoordinates()

ILIAS\User\Profile\Data::withGeoCoordinates ( array  $coordinates)

Definition at line 340 of file Data.php.

340 : self
341 {
342 $clone = clone $this;
343 $clone->geo_coordinates = $coordinates;
344 return $clone;
345 }

◆ withHobby()

ILIAS\User\Profile\Data::withHobby ( string  $hobby)

Definition at line 316 of file Data.php.

316 : self
317 {
318 $clone = clone $this;
319 $clone->hobby = $hobby;
320 return $clone;
321 }

◆ withId()

ILIAS\User\Profile\Data::withId ( int  $id)

Definition at line 64 of file Data.php.

64 : self
65 {
66 $clone = clone $this;
67 $clone->id = $id;
68 return $clone;
69 }

References $id.

◆ withInstitution()

ILIAS\User\Profile\Data::withInstitution ( string  $institution)

Definition at line 160 of file Data.php.

160 : self
161 {
162 $clone = clone $this;
163 $clone->institution = $institution;
164 return $clone;
165 }

◆ withLastname()

ILIAS\User\Profile\Data::withLastname ( string  $lastname)

Definition at line 112 of file Data.php.

112 : self
113 {
114 $clone = clone $this;
115 $clone->lastname = $lastname;
116 return $clone;
117 }

◆ withMatriculation()

ILIAS\User\Profile\Data::withMatriculation ( string  $matriculation)

Definition at line 304 of file Data.php.

304 : self
305 {
306 $clone = clone $this;
307 $clone->matriculation = $matriculation;
308 return $clone;
309 }

◆ withPhoneHome()

ILIAS\User\Profile\Data::withPhoneHome ( string  $phone)

Definition at line 268 of file Data.php.

268 : self
269 {
270 $clone = clone $this;
271 $clone->phone_home = $phone;
272 return $clone;
273 }

◆ withPhoneMobile()

ILIAS\User\Profile\Data::withPhoneMobile ( string  $phone)

Definition at line 280 of file Data.php.

280 : self
281 {
282 $clone = clone $this;
283 $clone->phone_mobile = $phone;
284 return $clone;
285 }

◆ withPhoneOffice()

ILIAS\User\Profile\Data::withPhoneOffice ( string  $phone)

Definition at line 256 of file Data.php.

256 : self
257 {
258 $clone = clone $this;
259 $clone->phone_office = $phone;
260 return $clone;
261 }

◆ withReferralComment()

ILIAS\User\Profile\Data::withReferralComment ( string  $comment)

Definition at line 328 of file Data.php.

328 : self
329 {
330 $clone = clone $this;
331 $clone->referral_comment = $comment;
332 return $clone;
333 }
$comment
Definition: buildRTE.php:72

References $comment.

◆ withSecondEmail()

ILIAS\User\Profile\Data::withSecondEmail ( ?string  $email)

Definition at line 244 of file Data.php.

244 : self
245 {
246 $clone = clone $this;
247 $clone->second_email = $email;
248 return $clone;
249 }

◆ withStreet()

ILIAS\User\Profile\Data::withStreet ( string  $street)

Definition at line 184 of file Data.php.

184 : self
185 {
186 $clone = clone $this;
187 $clone->street = $street;
188 return $clone;
189 }

◆ withSystemInformation()

ILIAS\User\Profile\Data::withSystemInformation ( array  $system_information)

Definition at line 381 of file Data.php.

381 : self
382 {
383 $clone = clone $this;
384 $clone->system_information = $system_information;
385 return $clone;
386 }

References ILIAS\User\Profile\Data\$system_information.

◆ withTitle()

ILIAS\User\Profile\Data::withTitle ( string  $title)

Definition at line 124 of file Data.php.

124 : self
125 {
126 $clone = clone $this;
127 $clone->title = $title;
128 return $clone;
129 }

◆ withZipcode()

ILIAS\User\Profile\Data::withZipcode ( string  $zipcode)

Definition at line 208 of file Data.php.

208 : self
209 {
210 $clone = clone $this;
211 $clone->zipcode = $zipcode;
212 return $clone;
213 }

Field Documentation

◆ $system_information

array ILIAS\User\Profile\Data::$system_information
private

The documentation for this class was generated from the following file: