Elgg  Version 3.0
debugging.php
Go to the documentation of this file.
1 <?php
7 $value = $config->hasInitialValue('debug') ? $config->getInitialValue('debug') : $config->debug;
8 
9 $help = elgg_echo('installation:debug');
10 if ($config->hasInitialValue('debug')) {
11  $help .= '<br>' . elgg_echo('admin:settings:in_settings_file');
12 }
13 
15  '#type' => 'select',
16  'options_values' => [
17  '' => elgg_echo('installation:debug:none'),
18  'ERROR' => elgg_echo('installation:debug:error'),
19  'WARNING' => elgg_echo('installation:debug:warning'),
20  'NOTICE' => elgg_echo('installation:debug:notice'),
21  'INFO' => elgg_echo('installation:debug:info'),
22  ],
23  'name' => 'debug',
24  '#label' => elgg_echo('installation:debug:label'),
25  '#help' => $help,
26  'value' => $value,
27  'disabled' => $config->hasInitialValue('debug'),
28 ]);
29 
30 echo elgg_view_module('info', elgg_echo('admin:legend:debug'), $body, ['id' => 'elgg-settings-advanced-debugging']);
if($config->hasInitialValue('debug')) $body
Definition: debugging.php:14
elgg_view_field(array $params=[])
Renders a form field, usually with a wrapper element, a label, help text, etc.
Definition: views.php:1395
$help
Definition: debugging.php:9
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$config
Advanced site settings, debugging section.
Definition: debugging.php:6
elgg_view_module($type, $title, $body, array $vars=[])
Wrapper function for the module display pattern.
Definition: views.php:1198
elgg echo
Translates a string.
Definition: languages.js:43
_elgg_config()
Get the Elgg config service.
$value
Definition: debugging.php:7