summaryrefslogtreecommitdiff
path: root/kohana/views/kohana_profiler_table.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-10-31 22:12:14 +0000
committerBharat Mediratta <bharat@menalto.com>2008-10-31 22:12:14 +0000
commiteba717f95f586d2538007bd18da6e9b32b076c30 (patch)
tree15fc596a270f9de0d163c66c96e3c65fca5ee100 /kohana/views/kohana_profiler_table.php
parentfff10f8b70376ef25722bd867df26bc5aefced43 (diff)
Merge over vendor code.
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18408 57fcd75e-5312-0410-8df3-f5eb6fbb1595
Diffstat (limited to 'kohana/views/kohana_profiler_table.php')
-rw-r--r--kohana/views/kohana_profiler_table.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/kohana/views/kohana_profiler_table.php b/kohana/views/kohana_profiler_table.php
new file mode 100644
index 00000000..aed6d094
--- /dev/null
+++ b/kohana/views/kohana_profiler_table.php
@@ -0,0 +1,24 @@
+<table class="kp-table">
+<?php
+foreach ($rows as $row):
+
+$class = empty($row['class']) ? '' : ' class="'.$row['class'].'"';
+$style = empty($row['style']) ? '' : ' style="'.$row['style'].'"';
+?>
+ <tr<?php echo $class; echo $style; ?>>
+ <?php
+ foreach ($columns as $index => $column)
+ {
+ $class = empty($column['class']) ? '' : ' class="'.$column['class'].'"';
+ $style = empty($column['style']) ? '' : ' style="'.$column['style'].'"';
+ $value = $row['data'][$index];
+ $value = (is_array($value) OR is_object($value)) ? '<pre>'.html::specialchars(print_r($value, TRUE)).'</pre>' : html::specialchars($value);
+ echo '<td', $style, $class, '>', $value, '</td>';
+ }
+ ?>
+ </tr>
+<?php
+
+endforeach;
+?>
+</table> \ No newline at end of file