ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\LegalDocuments\Setup\ConsumerObjective Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\Setup\ConsumerObjective:
+ Collaboration diagram for ILIAS\LegalDocuments\Setup\ConsumerObjective:

Public Member Functions

 getArtifactPath ()
 
 build ()
 
- Public Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
 getArtifactPath ()
 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 $this->getArtifactPath()". 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
 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

- Protected Member Functions inherited from ILIAS\Setup\Artifact\BuildArtifactObjective
 makeDirectoryFor (string $path)
 

Detailed Description

Definition at line 28 of file ConsumerObjective.php.

Member Function Documentation

◆ build()

ILIAS\LegalDocuments\Setup\ConsumerObjective::build ( )

Definition at line 35 of file ConsumerObjective.php.

35  : Artifact
36  {
37  $finder = new ImplementationOfInterfaceFinder();
38  $classes = iterator_to_array($finder->getMatchingClassNames(Consumer::class));
39  $ids = array_map(fn($class) => (new $class())->id(), $classes);
40 
41  return new ArrayArtifact(array_combine($ids, $classes));
42  }

◆ getArtifactPath()

ILIAS\LegalDocuments\Setup\ConsumerObjective::getArtifactPath ( )

Definition at line 30 of file ConsumerObjective.php.

References ILIAS\LegalDocuments\Internal\path().

30  : string
31  {
32  return Internal::path();
33  }
+ Here is the call graph for this function:

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