ILIAS  release_7 Revision v7.30-3-g800a261c036
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)
 
 isApplicable (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 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)

Implements ILIAS\Setup\Objective.

Definition at line 88 of file ObjectiveCollection.php.

88  : Environment
89  {
90  return $environment;
91  }

◆ getHash()

ILIAS\Setup\ObjectiveCollection::getHash ( )

Implements ILIAS\Setup\Objective.

Definition at line 45 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

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  }

◆ getLabel()

ILIAS\Setup\ObjectiveCollection::getLabel ( )

Implements ILIAS\Setup\Objective.

Definition at line 64 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$label.

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

◆ getObjectives()

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

Definition at line 37 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

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

◆ getPreconditions()

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

Implements ILIAS\Setup\Objective.

Definition at line 80 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

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

◆ isApplicable()

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

Implements ILIAS\Setup\Objective.

Definition at line 96 of file ObjectiveCollection.php.

96  : bool
97  {
98  return false;
99  }

◆ isNotable()

ILIAS\Setup\ObjectiveCollection::isNotable ( )

Implements ILIAS\Setup\Objective.

Definition at line 72 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$is_notable.

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

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: