ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilStaticComponentRepositoryExistsObjective Class Reference
+ Inheritance diagram for ilStaticComponentRepositoryExistsObjective:
+ Collaboration diagram for ilStaticComponentRepositoryExistsObjective:

Public Member Functions

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

Detailed Description

Member Function Documentation

◆ achieve()

ilStaticComponentRepositoryExistsObjective::achieve ( Setup\Environment  $environment)

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

References ILIAS_VERSION_NUMERIC.

62  : Setup\Environment
63  {
64  $data_factory = new ILIAS\Data\Factory();
65  $component_repository = new ilArtifactComponentRepository(
66  $data_factory,
67  new ilNullPluginStateDB(),
68  $data_factory->version(ILIAS_VERSION_NUMERIC)
69  );
70 
71  return $environment->withResource(
72  Setup\Environment::RESOURCE_COMPONENT_REPOSITORY,
73  $component_repository
74  );
75  }
Repository interface for plugin state data.
const ILIAS_VERSION_NUMERIC
Repository for component data implemented over artifacts.

◆ getHash()

ilStaticComponentRepositoryExistsObjective::getHash ( )

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

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

◆ getLabel()

ilStaticComponentRepositoryExistsObjective::getLabel ( )

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

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

◆ getPreconditions()

ilStaticComponentRepositoryExistsObjective::getPreconditions ( Setup\Environment  $environment)

◆ isApplicable()

ilStaticComponentRepositoryExistsObjective::isApplicable ( Setup\Environment  $environment)

Definition at line 80 of file class.ilStaticComponentRepositoryExistsObjective.php.

80  : bool
81  {
82  return is_null($environment->getResource(Setup\Environment::RESOURCE_COMPONENT_REPOSITORY));
83  }

◆ isNotable()

ilStaticComponentRepositoryExistsObjective::isNotable ( )

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

44  : bool
45  {
46  return true;
47  }

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