ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\LegalDocuments\Setup\ConsumerObjective Class Reference
+ Inheritance diagram for ILIAS\LegalDocuments\Setup\ConsumerObjective:
+ Collaboration diagram for ILIAS\LegalDocuments\Setup\ConsumerObjective:

Public Member Functions

 getArtifactName ()
 
 build ()
 
- 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
 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 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  }

◆ getArtifactName()

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

Definition at line 29 of file ConsumerObjective.php.

29  : string
30  {
31  return "legal_documents_consumer";
32  }

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