ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Setup\Condition\PHPVersionCondition Class Reference
+ Inheritance diagram for ILIAS\Setup\Condition\PHPVersionCondition:
+ Collaboration diagram for ILIAS\Setup\Condition\PHPVersionCondition:

Public Member Functions

 __construct ($which)
 
- Public Member Functions inherited from ILIAS\Setup\Condition\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 (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...
 

Additional Inherited Members

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

Detailed Description

Definition at line 9 of file PHPVersionCondition.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 11 of file PHPVersionCondition.php.

References ILIAS\GlobalScreen\Provider\__construct().

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

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