ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilObjectTypeSpecificPropertiesArtifactObjective.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 
31 {
32  public function getArtifactName(): string
33  {
34  return "object_specific_properties";
35  }
36 
37 
38  public function build(): Artifact
39  {
40  $finder = new ImplementationOfInterfaceFinder();
41 
42  $object_properties = [];
43 
44  foreach ($finder->getMatchingClassNames(ilObjectTypeSpecificProperties::class) as $object_properties_class) {
46  $properties = new $object_properties_class();
47  $object_type = $properties->getObjectTypeString();
48 
49  $object_properties[$object_type] = $object_properties_class;
50  }
51  return new ArrayArtifact($object_properties);
52  }
53 }
build()
Build the artifact based.
This is an objective to build some artifact.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
An array as an artifact.
An artifact is some file that is build on demand per installation and is not shipped with the ILIAS s...
Definition: Artifact.php:27