ILIAS  release_7 Revision v7.30-3-g800a261c036
ILIAS\Setup\Condition\PHPExtensionLoadedCondition Class Reference
+ Inheritance diagram for ILIAS\Setup\Condition\PHPExtensionLoadedCondition:
+ Collaboration diagram for ILIAS\Setup\Condition\PHPExtensionLoadedCondition:

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 PHPExtensionLoadedCondition.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 11 of file PHPExtensionLoadedCondition.php.

References ILIAS\GlobalScreen\Provider\__construct(), and ILIAS_VERSION_NUMERIC.

12  {
13  $ilias_version = ILIAS_VERSION_NUMERIC;
14 
15  return parent::__construct(
16  "PHP extension \"$which\" loaded",
17  function (Setup\Environment $env) use ($which) : bool {
18  return in_array($which, get_loaded_extensions());
19  },
20  "ILIAS $ilias_version requires the PHP extension $which."
21  );
22  }
const ILIAS_VERSION_NUMERIC
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

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