ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
PHPExtensionLoadedCondition.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\Setup\Condition
;
6
7
use
ILIAS\Setup
;
8
9
class
PHPExtensionLoadedCondition
extends
ExternalConditionObjective
10
{
11
public
function
__construct
($which)
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
}
23
}
ILIAS\Setup\Condition\PHPExtensionLoadedCondition
Definition:
PHPExtensionLoadedCondition.php:9
ILIAS\Setup\Condition\PHPExtensionLoadedCondition\__construct
__construct($which)
Definition:
PHPExtensionLoadedCondition.php:11
ILIAS_VERSION_NUMERIC
const ILIAS_VERSION_NUMERIC
Definition:
inc.ilias_version.php:13
ILIAS\Setup\Condition
Definition:
CanCreateDirectoriesInDirectoryCondition.php:5
ILIAS\Setup
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
AdminInteraction.php:5
ILIAS\Setup\Environment
An environment holds resources to be used in the setup process.
Definition:
Environment.php:11
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:40
ILIAS\Setup\Condition\ExternalConditionObjective
A condition that can't be met by ILIAS itself needs to be met by some external means.
Definition:
ExternalConditionObjective.php:16
src
Setup
Condition
PHPExtensionLoadedCondition.php
Generated on Mon Sep 1 2025 21:01:46 for ILIAS by
1.8.13 (using
Doxyfile
)