ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
User.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS;
22
25use ILIAS\User\Settings\User\Settings as SettingsOfUser;
26use ILIAS\User\Profile\Fields\Custom\Type as CustomProfileFieldType;
27use ILIAS\User\Profile\Fields\Custom\Text as CustomTypeText;
28use ILIAS\User\Profile\Fields\Custom\TextArea as CustomTypeTextArea;
29use ILIAS\User\Profile\Fields\Custom\Select as CustomTypeSelect;
32
33class User implements Component\Component
34{
35 public function init(
36 array | \ArrayAccess &$define,
37 array | \ArrayAccess &$implement,
38 array | \ArrayAccess &$use,
39 array | \ArrayAccess &$contribute,
40 array | \ArrayAccess &$seek,
41 array | \ArrayAccess &$provide,
42 array | \ArrayAccess &$pull,
43 array | \ArrayAccess &$internal,
44 ): void {
45 $contribute[SetupAgent::class] = fn() =>
46 new Agent(
47 $seek[UserSettings::class],
48 $seek[CustomProfileFieldType::class],
50 );
51 $contribute[UserSettings::class] = fn() =>
52 new SettingsOfUser();
53 $contribute[CustomProfileFieldType::class] = fn() =>
54 new CustomTypeText();
55 $contribute[CustomProfileFieldType::class] = fn() =>
56 new CustomTypeTextArea();
57 $contribute[CustomProfileFieldType::class] = fn() =>
58 new CustomTypeSelect();
59 }
60}
init(array|\ArrayAccess &$define, array|\ArrayAccess &$implement, array|\ArrayAccess &$use, array|\ArrayAccess &$contribute, array|\ArrayAccess &$seek, array|\ArrayAccess &$provide, array|\ArrayAccess &$pull, array|\ArrayAccess &$internal,)
Definition: User.php:35
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A component is the most general form of an entity in the UI.
Definition: Component.php:28
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.