ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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

string $label
 
bool $is_notable
 
array $objectives
 

Detailed Description

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

Definition at line 26 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 95 of file ObjectiveCollection.php.

95  : Environment
96  {
97  return $environment;
98  }

◆ getHash()

ILIAS\Setup\ObjectiveCollection::getHash ( )

Implements ILIAS\Setup\Objective.

Definition at line 54 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

54  : string
55  {
56  return hash(
57  "sha256",
58  get_class($this) .
59  implode(
60  array_map(
61  fn ($g): string => $g->getHash(),
63  )
64  )
65  );
66  }

◆ getLabel()

ILIAS\Setup\ObjectiveCollection::getLabel ( )

Implements ILIAS\Setup\Objective.

Definition at line 71 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$label.

71  : string
72  {
73  return $this->label;
74  }

◆ getObjectives()

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

Definition at line 46 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

46  : array
47  {
48  return $this->objectives;
49  }

◆ getPreconditions()

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

Implements ILIAS\Setup\Objective.

Definition at line 87 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$objectives.

87  : array
88  {
89  return $this->objectives;
90  }

◆ isApplicable()

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

Implements ILIAS\Setup\Objective.

Definition at line 103 of file ObjectiveCollection.php.

103  : bool
104  {
105  return false;
106  }

◆ isNotable()

ILIAS\Setup\ObjectiveCollection::isNotable ( )

Implements ILIAS\Setup\Objective.

Definition at line 79 of file ObjectiveCollection.php.

References ILIAS\Setup\ObjectiveCollection\$is_notable.

79  : bool
80  {
81  return $this->is_notable;
82  }

Field Documentation

◆ $is_notable

bool ILIAS\Setup\ObjectiveCollection::$is_notable
protected

◆ $label

string ILIAS\Setup\ObjectiveCollection::$label
protected

◆ $objectives


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