ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Setup\PHPVersionCondition Class Reference
+ Inheritance diagram for ILIAS\Setup\PHPVersionCondition:
+ Collaboration diagram for ILIAS\Setup\PHPVersionCondition:

Public Member Functions

 __construct ($which)
 
- Public Member Functions inherited from ILIAS\Setup\ExternalConditionObjective
 __construct (string $label, callable $condition, string $message=null)
 
 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. 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.
Exceptions
UnachievableExceptionif the objective is not achievable
Returns
Objective[]
More...
 
 achieve (Environment $environment)
 Objectives can be achieved.They might add resources to the environment when they have been achieved.This method needs to be idempotent for a given environment. That means: if this is executed a second time, nothing new should happen. Or the other way round: if the environment already looks like desired, the objective should not take any further actions when this is called.
Exceptions
More...
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Setup\ExternalConditionObjective
 $label
 
 $condition
 
 $message
 

Detailed Description

Definition at line 7 of file PHPVersionCondition.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Setup\PHPVersionCondition::__construct (   $which)

Definition at line 9 of file PHPVersionCondition.php.

References ILIAS\GlobalScreen\Provider\__construct().

10  {
11  return parent::__construct(
12  "PHP version >= $which",
13  function (Environment $env) use ($which) : bool {
14  return version_compare(phpversion(), $which, ">=");
15  },
16  "ILIAS 6 requires PHP $which or later."
17  );
18  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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