ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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...
 
 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...
 

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 12 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 90 of file ObjectiveCollection.php.

91 {
92 return $environment;
93 }
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 47 of file ObjectiveCollection.php.

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

References ILIAS\Setup\ObjectiveCollection\$objectives.

◆ getLabel()

ILIAS\Setup\ObjectiveCollection::getLabel ( )

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 66 of file ObjectiveCollection.php.

66 : string
67 {
68 return $this->label;
69 }

References ILIAS\Setup\ObjectiveCollection\$label.

◆ getObjectives()

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

Definition at line 39 of file ObjectiveCollection.php.

39 : array
40 {
41 return $this->objectives;
42 }

References ILIAS\Setup\ObjectiveCollection\$objectives.

◆ getPreconditions()

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

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 82 of file ObjectiveCollection.php.

82 : array
83 {
84 return $this->objectives;
85 }

References ILIAS\Setup\ObjectiveCollection\$objectives.

◆ isNotable()

ILIAS\Setup\ObjectiveCollection::isNotable ( )

@inheritdocs

Implements ILIAS\Setup\Objective.

Definition at line 74 of file ObjectiveCollection.php.

74 : bool
75 {
76 return $this->is_notable;
77 }

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: