ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilComponentRepositoryExistsObjective Class Reference
+ Inheritance diagram for ilComponentRepositoryExistsObjective:
+ Collaboration diagram for ilComponentRepositoryExistsObjective:

Public Member Functions

 getHash ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
 isApplicable (Setup\Environment $environment)
 @inheritDoc More...
 

Detailed Description

Member Function Documentation

◆ achieve()

ilComponentRepositoryExistsObjective::achieve ( Setup\Environment  $environment)

Definition at line 62 of file class.ilComponentRepositoryExistsObjective.php.

62 : Setup\Environment
63 {
64 $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
65
66 $data_factory = new ILIAS\Data\Factory();
67 $component_repository = new ilArtifactComponentRepository(
68 $data_factory,
70 $data_factory,
71 $db
72 ),
73 $data_factory->version(ILIAS_VERSION_NUMERIC)
74 );
75
76 return $environment->withResource(
77 Setup\Environment::RESOURCE_COMPONENT_REPOSITORY,
78 $component_repository
79 );
80 }
Builds data types.
Definition: Factory.php:36
Repository for component data implemented over artifacts.
Implementation of ilPluginStateDB over ilDBInterface.
const ILIAS_VERSION_NUMERIC

References ILIAS\Setup\Environment\getResource(), and ILIAS_VERSION_NUMERIC.

+ Here is the call graph for this function:

◆ getHash()

ilComponentRepositoryExistsObjective::getHash ( )

Definition at line 28 of file class.ilComponentRepositoryExistsObjective.php.

28 : string
29 {
30 return hash("sha256", self::class);
31 }

◆ getLabel()

ilComponentRepositoryExistsObjective::getLabel ( )

Definition at line 36 of file class.ilComponentRepositoryExistsObjective.php.

36 : string
37 {
38 return "ilComponentRepository (with database) is initialized and stored into the environment.";
39 }

◆ getPreconditions()

ilComponentRepositoryExistsObjective::getPreconditions ( Setup\Environment  $environment)

◆ isApplicable()

ilComponentRepositoryExistsObjective::isApplicable ( Setup\Environment  $environment)

@inheritDoc

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

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

◆ isNotable()

ilComponentRepositoryExistsObjective::isNotable ( )

Definition at line 44 of file class.ilComponentRepositoryExistsObjective.php.

44 : bool
45 {
46 return true;
47 }

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