19declare(strict_types=1);
31 private ?
int $id =
null,
32 private string $alias =
'',
34 private string $firstname =
'',
35 private string $lastname =
'',
36 private string $title =
'',
37 private ?
Genders $gender =
null,
38 private ?\DateTimeImmutable $birthday =
null,
39 private string $institution =
'',
40 private string $department =
'',
41 private string $street =
'',
42 private string $city =
'',
43 private string $zipcode =
'',
44 private string $country =
'',
45 private string $email =
'',
46 private ?
string $second_email =
null,
47 private string $phone_office =
'',
48 private string $phone_home =
'',
49 private string $phone_mobile =
'',
50 private string $fax =
'',
51 private string $matriculation =
'',
52 private string $hobby =
'',
53 private string $referral_comment =
'',
54 private array $geo_coordinates = [],
55 private array $additional_fields = []
79 $clone->alias = $alias;
85 return $this->avatar_rid;
91 $clone->avatar_rid = $this->avatar_rid;
97 return $this->firstname;
102 $clone = clone $this;
103 $clone->firstname = $firstname;
109 return $this->lastname;
114 $clone = clone $this;
115 $clone->lastname = $lastname;
126 $clone = clone $this;
127 $clone->title = $title;
133 return $this->gender;
138 $clone = clone $this;
139 $clone->gender = $gender;
145 return $this->birthday;
150 $clone = clone $this;
151 $clone->birthday = $birthday;
157 return $this->institution;
162 $clone = clone $this;
163 $clone->institution = $institution;
169 return $this->department;
174 $clone = clone $this;
175 $clone->department = $department;
181 return $this->street;
186 $clone = clone $this;
187 $clone->street = $street;
198 $clone = clone $this;
199 $clone->city = $city;
205 return $this->zipcode;
210 $clone = clone $this;
211 $clone->zipcode = $zipcode;
217 return $this->country;
222 $clone = clone $this;
223 $clone->country = $country;
234 $clone = clone $this;
235 $clone->email = $email;
241 return $this->second_email;
246 $clone = clone $this;
247 $clone->second_email = $email;
253 return $this->phone_office;
258 $clone = clone $this;
259 $clone->phone_office = $phone;
265 return $this->phone_home;
270 $clone = clone $this;
271 $clone->phone_home = $phone;
277 return $this->phone_mobile;
282 $clone = clone $this;
283 $clone->phone_mobile = $phone;
294 $clone = clone $this;
301 return $this->matriculation;
306 $clone = clone $this;
307 $clone->matriculation = $matriculation;
318 $clone = clone $this;
319 $clone->hobby = $hobby;
325 return $this->referral_comment;
330 $clone = clone $this;
331 $clone->referral_comment =
$comment;
337 return $this->geo_coordinates;
342 $clone = clone $this;
343 $clone->geo_coordinates = $coordinates;
349 return $this->additional_fields[$identifier] ??
null;
354 $clone = clone $this;
355 $clone->additional_fields[$identifier] = $value;
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)}),",
383 $clone = clone $this;
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Class ResourceIdentification.
withDepartment(string $department)
withGender(?Genders $gender)
withZipcode(string $zipcode)
withAvatarRid(?ResourceIdentification $avatar_rid)
withAdditionalFieldByIdentifier(string $identifier, mixed $value)
withStreet(string $street)
getAdditionalFieldByIdentifier(string $identifier)
withCountry(string $country)
withGeoCoordinates(array $coordinates)
getAdditionalFieldsStorageValues(\ilDBInterface $db)
withReferralComment(string $comment)
withInstitution(string $institution)
withSecondEmail(?string $email)
withBirthday(?\DateTimeImmutable $birthday)
withPhoneOffice(string $phone)
withSystemInformation(array $system_information)
__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=[])
withPhoneHome(string $phone)
withLastname(string $lastname)
withPhoneMobile(string $phone)
withFirstname(string $firstname)
array $system_information
withMatriculation(string $matriculation)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...