ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 
 getLabel ()
 
 isNotable ()
 
 getPreconditions (Environment $environment)
 
 achieve (Environment $environment)
 

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)

Implements ILIAS\Setup\Objective.

Definition at line 90 of file ObjectiveCollection.php.

90  : Environment
91  {
92  return $environment;
93  }

◆ getHash()

ILIAS\Setup\ObjectiveCollection::getHash ( )

Implements ILIAS\Setup\Objective.

Definition at line 47 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

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  }

◆ getLabel()

ILIAS\Setup\ObjectiveCollection::getLabel ( )

Implements ILIAS\Setup\Objective.

Definition at line 66 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$label.

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

◆ getObjectives()

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

Definition at line 39 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

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

◆ getPreconditions()

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

Implements ILIAS\Setup\Objective.

Definition at line 82 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

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

◆ isNotable()

ILIAS\Setup\ObjectiveCollection::isNotable ( )

Implements ILIAS\Setup\Objective.

Definition at line 74 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$is_notable.

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

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: