ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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)
 

Detailed Description

Member Function Documentation

◆ achieve()

ilComponentRepositoryExistsObjective::achieve ( Setup\Environment  $environment)

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

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

63  : Setup\Environment
64  {
65  $db = $environment->getResource(Setup\Environment::RESOURCE_DATABASE);
66 
67  $data_factory = new ILIAS\Data\Factory();
68  $component_repository = new ilArtifactComponentRepository(
69  $data_factory,
71  $data_factory,
72  $db
73  ),
74  $data_factory->version(ILIAS_VERSION_NUMERIC)
75  );
76 
77  return $environment->withResource(
78  Setup\Environment::RESOURCE_COMPONENT_REPOSITORY,
79  $component_repository
80  );
81  }
Implementation of ilPluginStateDB over ilDBInterface.
const ILIAS_VERSION_NUMERIC
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Repository for component data implemented over artifacts.
+ Here is the call graph for this function:

◆ getHash()

ilComponentRepositoryExistsObjective::getHash ( )

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

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

◆ getLabel()

ilComponentRepositoryExistsObjective::getLabel ( )

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

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

◆ getPreconditions()

ilComponentRepositoryExistsObjective::getPreconditions ( Setup\Environment  $environment)

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

53  : array
54  {
55  return [
57  ];
58  }

◆ isApplicable()

ilComponentRepositoryExistsObjective::isApplicable ( Setup\Environment  $environment)

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

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

◆ isNotable()

ilComponentRepositoryExistsObjective::isNotable ( )

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

45  : bool
46  {
47  return true;
48  }

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