ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilComponentFactoryExistsObjective Class Reference
+ Inheritance diagram for ilComponentFactoryExistsObjective:
+ Collaboration diagram for ilComponentFactoryExistsObjective:

Public Member Functions

 getHash ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
 isApplicable (Setup\Environment $environment)
 

Detailed Description

Member Function Documentation

◆ achieve()

ilComponentFactoryExistsObjective::achieve ( Setup\Environment  $environment)

Definition at line 67 of file class.ilComponentFactoryExistsObjective.php.

References ILIAS\Setup\Environment\getResource().

67  : Setup\Environment
68  {
69  $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
70  $component_repository = $environment->getResource(Setup\Environment::RESOURCE_COMPONENT_REPOSITORY);
71 
72  $component_factory = new ilComponentFactoryImplementation(
73  $component_repository,
74  $db
75  );
76 
77  return $environment->withResource(
78  Setup\Environment::RESOURCE_COMPONENT_FACTORY,
79  $component_factory
80  );
81  }
+ Here is the call graph for this function:

◆ getHash()

ilComponentFactoryExistsObjective::getHash ( )

Definition at line 32 of file class.ilComponentFactoryExistsObjective.php.

32  : string
33  {
34  return hash("sha256", self::class);
35  }

◆ getLabel()

ilComponentFactoryExistsObjective::getLabel ( )

Definition at line 40 of file class.ilComponentFactoryExistsObjective.php.

40  : string
41  {
42  return "ilComponentFactory is initialized and stored into the environment.";
43  }

◆ getPreconditions()

ilComponentFactoryExistsObjective::getPreconditions ( Setup\Environment  $environment)

Definition at line 56 of file class.ilComponentFactoryExistsObjective.php.

56  : array
57  {
58  return [
59  new \ilDatabaseUpdatedObjective(),
60  new \ilComponentRepositoryExistsObjective()
61  ];
62  }

◆ isApplicable()

ilComponentFactoryExistsObjective::isApplicable ( Setup\Environment  $environment)

Definition at line 86 of file class.ilComponentFactoryExistsObjective.php.

86  : bool
87  {
88  return is_null($environment->getResource(Setup\Environment::RESOURCE_COMPONENT_FACTORY));
89  }

◆ isNotable()

ilComponentFactoryExistsObjective::isNotable ( )

Definition at line 48 of file class.ilComponentFactoryExistsObjective.php.

48  : bool
49  {
50  return true;
51  }

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