ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 66 of file class.ilComponentFactoryExistsObjective.php.

References ILIAS\Setup\Environment\getResource().

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

◆ getHash()

ilComponentFactoryExistsObjective::getHash ( )

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

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

◆ getLabel()

ilComponentFactoryExistsObjective::getLabel ( )

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

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

◆ getPreconditions()

ilComponentFactoryExistsObjective::getPreconditions ( Setup\Environment  $environment)

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

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

◆ isApplicable()

ilComponentFactoryExistsObjective::isApplicable ( Setup\Environment  $environment)

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

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

◆ isNotable()

ilComponentFactoryExistsObjective::isNotable ( )

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

47  : bool
48  {
49  return true;
50  }

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