ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 63 of file class.ilStaticComponentRepositoryExistsObjective.php.

References ILIAS_VERSION_NUMERIC.

63  : Setup\Environment
64  {
65  $data_factory = new ILIAS\Data\Factory();
66  $component_repository = new ilArtifactComponentRepository(
67  $data_factory,
68  new ilNullPluginStateDB(),
69  $data_factory->version(ILIAS_VERSION_NUMERIC)
70  );
71 
72  return $environment->withResource(
73  Setup\Environment::RESOURCE_COMPONENT_REPOSITORY,
74  $component_repository
75  );
76  }
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 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 (static) is initialized and stored into the environment.";
39  }

◆ getPreconditions()

ilStaticComponentRepositoryExistsObjective::getPreconditions ( Setup\Environment  $environment)

◆ isApplicable()

ilStaticComponentRepositoryExistsObjective::isApplicable ( Setup\Environment  $environment)

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

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

◆ 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: