ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Setup\ObjectiveCollection Class Reference

A objective collection is a objective that is achieved once all subobjectives are achieved. More...

+ Inheritance diagram for ILIAS\Setup\ObjectiveCollection:
+ Collaboration diagram for ILIAS\Setup\ObjectiveCollection:

Public Member Functions

 __construct (string $label, bool $is_notable, Objective ... $objectives)
 
 getObjectives ()
 
 getHash ()
 @inheritdocs More...
 
 getLabel ()
 @inheritdocs More...
 
 isNotable ()
 @inheritdocs More...
 
 getPreconditions (Environment $environment)
 @inheritdocs More...
 
 achieve (Environment $environment)
 @inheritdocs More...
 
 isApplicable (Environment $environment)
 @inheritdocs More...
 
 getHash ()
 Get a hash for this objective. More...
 
 getLabel ()
 Get a label that describes this objective. More...
 
 isNotable ()
 Get to know if this is an interesting objective for a human. More...
 
 getPreconditions (Environment $environment)
 Objectives might depend on other objectives. More...
 
 achieve (Environment $environment)
 Objectives can be achieved. More...
 
 isApplicable (Environment $environment)
 Get to know whether the objective is applicable. More...
 

Protected Attributes

 $label
 
 $is_notable
 
 $objectives
 

Detailed Description

A objective collection is a objective that is achieved once all subobjectives are achieved.

Definition at line 10 of file ObjectiveCollection.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Setup\ObjectiveCollection::__construct ( string  $label,
bool  $is_notable,
Objective ...  $objectives 
)

Member Function Documentation

◆ achieve()

ILIAS\Setup\ObjectiveCollection::achieve ( Environment  $environment)

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 88 of file ObjectiveCollection.php.

89 {
90 return $environment;
91 }
An environment holds resources to be used in the setup process.
Definition: Environment.php:12

◆ getHash()

ILIAS\Setup\ObjectiveCollection::getHash ( )

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 45 of file ObjectiveCollection.php.

45 : string
46 {
47 return hash(
48 "sha256",
49 get_class($this) .
50 implode(
51 array_map(
52 function ($g) {
53 return $g->getHash();
54 },
56 )
57 )
58 );
59 }

References ILIAS\Setup\ObjectiveCollection\$objectives.

◆ getLabel()

ILIAS\Setup\ObjectiveCollection::getLabel ( )

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 64 of file ObjectiveCollection.php.

64 : string
65 {
66 return $this->label;
67 }

References ILIAS\Setup\ObjectiveCollection\$label.

◆ getObjectives()

ILIAS\Setup\ObjectiveCollection::getObjectives ( )
Returns
Objective[]

Definition at line 37 of file ObjectiveCollection.php.

37 : array
38 {
39 return $this->objectives;
40 }

References ILIAS\Setup\ObjectiveCollection\$objectives.

◆ getPreconditions()

ILIAS\Setup\ObjectiveCollection::getPreconditions ( Environment  $environment)

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 80 of file ObjectiveCollection.php.

80 : array
81 {
82 return $this->objectives;
83 }

References ILIAS\Setup\ObjectiveCollection\$objectives.

◆ isApplicable()

ILIAS\Setup\ObjectiveCollection::isApplicable ( Environment  $environment)

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 96 of file ObjectiveCollection.php.

96 : bool
97 {
98 return false;
99 }

◆ isNotable()

ILIAS\Setup\ObjectiveCollection::isNotable ( )

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 72 of file ObjectiveCollection.php.

72 : bool
73 {
74 return $this->is_notable;
75 }

References ILIAS\Setup\ObjectiveCollection\$is_notable.

Field Documentation

◆ $is_notable

ILIAS\Setup\ObjectiveCollection::$is_notable
protected

◆ $label

ILIAS\Setup\ObjectiveCollection::$label
protected

◆ $objectives


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