ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Setup\Objective\NullObjective Class Reference

A non-objective, nothing to do to achieve it... More...

+ Inheritance diagram for ILIAS\Setup\Objective\NullObjective:
+ Collaboration diagram for ILIAS\Setup\Objective\NullObjective:

Public Member Functions

 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 (Setup\Environment $environment)
 
 achieve (Setup\Environment $environment)
 
 isApplicable (Setup\Environment $environment)
 
- Public Member Functions inherited from ILIAS\Setup\Objective
 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...
 

Data Fields

const LABEL = "Nothing to do."
 

Detailed Description

A non-objective, nothing to do to achieve it...

Definition at line 12 of file NullObjective.php.

Member Function Documentation

◆ achieve()

ILIAS\Setup\Objective\NullObjective::achieve ( Setup\Environment  $environment)

Definition at line 42 of file NullObjective.php.

42  : Setup\Environment
43  {
44  return $environment;
45  }

◆ getHash()

ILIAS\Setup\Objective\NullObjective::getHash ( )

Get a hash for this objective.

The hash of two objectives must be the same, if they are the same objective, with the same config on the same environment, i.e. if the one is achieved the other is achieved as well because they are the same.

Implements ILIAS\Setup\Objective.

Definition at line 16 of file NullObjective.php.

16  : string
17  {
18  return "null-objective";
19  }

◆ getLabel()

ILIAS\Setup\Objective\NullObjective::getLabel ( )

Get a label that describes this objective.

Implements ILIAS\Setup\Objective.

Definition at line 21 of file NullObjective.php.

21  : string
22  {
23  return self::LABEL;
24  }

◆ getPreconditions()

ILIAS\Setup\Objective\NullObjective::getPreconditions ( Setup\Environment  $environment)

Definition at line 34 of file NullObjective.php.

34  : array
35  {
36  return [];
37  }

◆ isApplicable()

ILIAS\Setup\Objective\NullObjective::isApplicable ( Setup\Environment  $environment)

Definition at line 50 of file NullObjective.php.

50  : bool
51  {
52  return false;
53  }

◆ isNotable()

ILIAS\Setup\Objective\NullObjective::isNotable ( )

Get to know if this is an interesting objective for a human.

Implements ILIAS\Setup\Objective.

Definition at line 26 of file NullObjective.php.

26  : bool
27  {
28  return false;
29  }

Field Documentation

◆ LABEL

const ILIAS\Setup\Objective\NullObjective::LABEL = "Nothing to do."

Definition at line 14 of file NullObjective.php.


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