Elgg  Version 2.2
 All Classes Namespaces Files Functions Variables Pages
debugging.php
Go to the documentation of this file.
1 <?php
6 $debug_options = array(
7  '0' => elgg_echo('installation:debug:none'),
8  'ERROR' => elgg_echo('installation:debug:error'),
9  'WARNING' => elgg_echo('installation:debug:warning'),
10  'NOTICE' => elgg_echo('installation:debug:notice'),
11  'INFO' => elgg_echo('installation:debug:info'),
12 );
13 
14 $debug_label = elgg_echo('installation:debug:label');
15 $debug_input = elgg_view('input/select', array(
16  'options_values' => $debug_options,
17  'name' => 'debug',
18  'value' => elgg_get_config('debug'),
19 ));
20 
21 ?>
22 <fieldset class="elgg-fieldset" id="elgg-settings-advanced-debugging">
23  <legend><?php echo elgg_echo('admin:legend:debug'); ?></legend>
24 
25  <div>
26  <p><?php echo elgg_echo('installation:debug'); ?></p>
27 
28  <label>
29  <?php
30  echo $debug_label;
31  echo $debug_input;
32  ?>
33 
34  </label>
35  </div>
36 </fieldset>
elgg_get_config($name, $site_guid=0)
Get an Elgg configuration value.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
Definition: languages.php:21
$debug_input
Definition: debugging.php:15
$debug_options
Advanced site settings, debugging section.
Definition: debugging.php:6
elgg_view($view, $vars=array(), $ignore1=false, $ignore2=false, $viewtype= '')
Return a parsed view.
Definition: views.php:342
$debug_label
Definition: debugging.php:14