ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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)
 @inheritDoc More...
 

Detailed Description

Member Function Documentation

◆ achieve()

ilStaticComponentRepositoryExistsObjective::achieve ( Setup\Environment  $environment)

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

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

References ILIAS_VERSION_NUMERIC.

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

@inheritDoc

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: