Renamed 'super' tables for consistency

This commit is contained in:
filp
2013-03-15 18:19:08 +00:00
parent 4a26a50c73
commit 9deb3799df
2 changed files with 10 additions and 10 deletions
+4 -4
View File
@@ -51,7 +51,7 @@ class PrettyPageHandler extends Handler
'handler' => $this,
'handlers' => $this->getRun()->getHandlers(),
'super' => array(
'tables' => array(
'GET Data' => $_GET,
'POST Data' => $_POST,
'Files' => $_FILES,
@@ -62,8 +62,8 @@ class PrettyPageHandler extends Handler
)
);
// Add extra entries to the "super" list of data tables:
$v->super = array_merge($v->super, $this->getDataTables());
// Add extra entries list of data tables:
$v->tables = array_merge($v->tables, $this->getDataTables());
call_user_func(function() use($templateFile, $v) {
// $e -> cleanup output
@@ -83,7 +83,7 @@ class PrettyPageHandler extends Handler
}
/**
* Adds an entry to the list of superglobals displayed in the template.
* Adds an entry to the list of tables displayed in the template.
* The expected data is a simple associative array. Any nested arrays
* will be flattened with print_r
* @param string $label
+6 -6
View File
@@ -377,20 +377,20 @@
<?php endforeach ?>
</div>
<?php /* List superglobal values, i.e: $_SERVER, $_GET, .... */ ?>
<?php /* List data-table values, i.e: $_SERVER, $_GET, .... */ ?>
<div class="details">
<div class="data-table-container" id="superglobals">
<?php foreach($v->super as $label => $data): ?>
<div class="data-table-container" id="data-tables">
<?php foreach($v->tables as $label => $data): ?>
<?php if(!empty($data)): ?>
<div class="superglobal" id="sg-<?php echo $e($slug($label)) ?>">
<div class="data-table" id="sg-<?php echo $e($slug($label)) ?>">
<label><?php echo $e($label) ?></label>
<table class="data-table">
<thead>
<tr>
<td class="superglobal-k">Key</td>
<td class="superglobal-v">Value</td>
<td class="data-table-k">Key</td>
<td class="data-table-v">Value</td>
</tr>
</thead>
<?php foreach($data as $k => $value): ?>