ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\User\Settings\CollectSettingsObjective Class Reference
+ Inheritance diagram for ILIAS\User\Settings\CollectSettingsObjective:
+ Collaboration diagram for ILIAS\User\Settings\CollectSettingsObjective:

Public Member Functions

 __construct (private readonly array $contributions)
 
 getArtifactName ()
 Get the filename where the builder wants to put its artifact. More...
 
 build ()
 Build the artifact based. More...
 
- Public Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
 getArtifactName ()
 Get the filename where the builder wants to put its artifact. More...
 
 build ()
 Build the artifact based. More...
 
 buildIn (Setup\Environment $env)
 Builds an artifact in some given Environment. More...
 
 getPreconditions (Setup\Environment $environment)
 Defaults to no preconditions. More...
 
 getHash ()
 Uses hashed Path. More...
 
 getLabel ()
 Defaults to 'Build ' . More...
 
 isNotable ()
 Defaults to 'true'. More...
 
 achieve (Setup\Environment $environment)
 Builds the artifact and puts it in its location. More...
 
 isApplicable (Setup\Environment $environment)
 
- Public Member Functions inherited from ILIAS\Setup\Objective
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
static PATH ()
 
- Protected Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
 getPath ()
 
 makeDirectoryFor (string $path)
 
- Protected Attributes inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
const ARTIFACTS = __DIR__ . "/../../../../../artifacts"
 

Detailed Description

Definition at line 27 of file CollectSettingsObjective.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\User\Settings\CollectSettingsObjective::__construct ( private readonly array  $contributions)

Definition at line 29 of file CollectSettingsObjective.php.

31 {
32 }

Member Function Documentation

◆ build()

ILIAS\User\Settings\CollectSettingsObjective::build ( )

Build the artifact based.

If you want to use the environment reimplement buildIn instead.

Reimplemented from ILIAS\Setup\Artifact\BuildArtifactObjective.

Definition at line 39 of file CollectSettingsObjective.php.

39 : Artifact
40 {
41 return new ArrayArtifact(
42 array_reduce(
43 $this->contributions,
44 static fn(array $c, UserSettings $settings): array => array_merge($c, $settings->getSettingConfigurations()),
45 []
46 )
47 );
48 }
$c
Definition: deliver.php:25

References $c, and ILIAS\User\Settings\UserSettings\getSettingConfigurations().

+ Here is the call graph for this function:

◆ getArtifactName()

ILIAS\User\Settings\CollectSettingsObjective::getArtifactName ( )

Get the filename where the builder wants to put its artifact.

This is understood to be a path relative to the ILIAS root directory.

Reimplemented from ILIAS\Setup\Artifact\BuildArtifactObjective.

Definition at line 34 of file CollectSettingsObjective.php.

34 : string
35 {
36 return 'user_settings';
37 }

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