ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 64 of file class.ilStaticComponentRepositoryExistsObjective.php.

References ILIAS_VERSION_NUMERIC.

64  : Setup\Environment
65  {
66  $data_factory = new ILIAS\Data\Factory();
67  $component_repository = new ilArtifactComponentRepository(
68  $data_factory,
69  new ilNullPluginStateDB(),
70  $data_factory->version(ILIAS_VERSION_NUMERIC)
71  );
72 
73  return $environment->withResource(
74  Setup\Environment::RESOURCE_COMPONENT_REPOSITORY,
75  $component_repository
76  );
77  }
Repository interface for plugin state data.
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.

◆ getHash()

ilStaticComponentRepositoryExistsObjective::getHash ( )

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

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

◆ getLabel()

ilStaticComponentRepositoryExistsObjective::getLabel ( )

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

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

◆ getPreconditions()

ilStaticComponentRepositoryExistsObjective::getPreconditions ( Setup\Environment  $environment)

◆ isApplicable()

ilStaticComponentRepositoryExistsObjective::isApplicable ( Setup\Environment  $environment)

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

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

◆ isNotable()

ilStaticComponentRepositoryExistsObjective::isNotable ( )

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

45  : bool
46  {
47  return true;
48  }

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