Elgg  Version 4.3
Variables
requirements.php File Reference

Go to the source code of this file.

Variables

 $icon_ok = elgg_view_icon('check')
 
 $icon_warning = elgg_view_icon('exclamation-triangle')
 
 $icon_error = elgg_view_icon('times')
 
 $view_module
 
 $icon = $icon_ok
 
 $title = elgg_echo('admin:server:label:php_version')
 
 $value = PHP_VERSION
 
 $subtext = ''
 
 if (version_compare(PHP_VERSION,\ElggInstaller::PHP_MINIMAL_VERSION, '<'))
 
 $extensions = get_loaded_extensions()
 
 $requiredExtensions
 
foreach($requiredExtensions as $extension) $recommendedExtensions
 
foreach($recommendedExtensions as $extension) if(empty(ini_get('session.gc_probability'))||empty(ini_get('session.gc_divisor'))) $db = _elgg_services()->db
 
 $version = $db->getServerVersion()
 
 $min_version = $db->isMariaDB() ? \ElggInstaller::MARIADB_MINIMAL_VERSION : \ElggInstaller::MYSQL_MINIMAL_VERSION
 
 $server = $db->isMariaDB() ? 'mariadb' : $db->getConnection(DbConfig::READ_WRITE)->getDatabasePlatform()->getName()
 
 if (!in_array($server,['mysql', 'mariadb'])||version_compare($version?: '0', $min_version, '<'))
 
 $client_parts = explode('\\', get_class($db->getConnection(DbConfig::READ_WRITE)->getDriver()))
 
 $client = implode(' ', $client_parts)
 
 $url
 
 $tester = new ElggRewriteTester()
 

Variable Documentation

$client = implode(' ', $client_parts)

Definition at line 109 of file requirements.php.

$client_parts = explode('\\', get_class($db->getConnection(DbConfig::READ_WRITE)->getDriver()))

Definition at line 107 of file requirements.php.

foreach ($recommendedExtensions as $extension) if (empty(ini_get('session.gc_probability'))||empty(ini_get('session.gc_divisor'))) $db = _elgg_services()->db

Definition at line 92 of file requirements.php.

$extensions = get_loaded_extensions()

Definition at line 43 of file requirements.php.

$icon = $icon_ok

Definition at line 30 of file requirements.php.

$icon_error = elgg_view_icon('times')

Definition at line 14 of file requirements.php.

$icon_ok = elgg_view_icon('check')

Definition at line 12 of file requirements.php.

$icon_warning = elgg_view_icon('exclamation-triangle')

Definition at line 13 of file requirements.php.

Definition at line 94 of file requirements.php.

foreach ($requiredExtensions as $extension) $recommendedExtensions
Initial value:
= [
'mbstring',
]

Definition at line 66 of file requirements.php.

$requiredExtensions
Initial value:
= [
'pdo_mysql',
'json',
'xml',
'gd',
]

Definition at line 44 of file requirements.php.

$server = $db->isMariaDB() ? 'mariadb' : $db->getConnection(DbConfig::READ_WRITE)->getDatabasePlatform()->getName()

Definition at line 95 of file requirements.php.

$subtext = ''

Definition at line 33 of file requirements.php.

$tester = new ElggRewriteTester()

Definition at line 126 of file requirements.php.

$title = elgg_echo('admin:server:label:php_version')

Definition at line 31 of file requirements.php.

$url
Initial value:
= elgg_http_add_url_query_elements(Request::REWRITE_TEST_TOKEN, [
Request::REWRITE_TEST_TOKEN => 1,
])
elgg_http_add_url_query_elements($url, array $elements)
Sets elements in a URL&#39;s query string.
Definition: elgglib.php:481

Definition at line 121 of file requirements.php.

$value = PHP_VERSION

Definition at line 32 of file requirements.php.

$version = $db->getServerVersion()

Definition at line 93 of file requirements.php.

$view_module
Initial value:
= function($icon, $title, $value = '', $subtext = '') {
$body = elgg_format_element('strong', [], $title);
$body .= elgg_format_element('span', ['class' => 'mlm'], $value);
}
$body .= elgg_format_element('div', ['class' => 'elgg-subtext'], $subtext);
}
return elgg_view_image_block($icon, $body, ['class' => 'elgg-admin-information-row']);
}
$icon
$subtext
$value
elgg_is_empty($value)
Check if a value isn&#39;t empty, but allow 0 and &#39;0&#39;.
Definition: input.php:179
elgg_view_image_block($image, $body, $vars=[])
Wrapper function for the image block display pattern.
Definition: views.php:923
elgg_format_element($tag_name, array $attributes=[], $text= '', array $options=[])
Format an HTML element.
Definition: output.php:135
$body
Definition: useradd.php:59
$title

Definition at line 16 of file requirements.php.

if(!$tester->runRewriteTest($url))

Definition at line 35 of file requirements.php.

if(!in_array($server, ['mysql', 'mariadb'])||version_compare($version?: '0', $min_version, '<'))

Definition at line 99 of file requirements.php.