projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4c5434
)
DatabaseColumns.php
author
Alan Knowles
<alan@roojs.com>
Thu, 22 May 2014 07:40:34 +0000
(15:40 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 22 May 2014 07:40:34 +0000
(15:40 +0800)
DatabaseColumns.php
patch
|
blob
|
history
diff --git
a/DatabaseColumns.php
b/DatabaseColumns.php
index
ea38b61
..
9a2a161
100644
(file)
--- a/
DatabaseColumns.php
+++ b/
DatabaseColumns.php
@@
-25,9
+25,15
@@
class Pman_Core_DatabaseColumns extends Pman {
function get($table) {
$d = DB_DAtaObject::Factory($table);
$re = $d->autoJoin();
- echo '<PRE>';
- print_r($re);
- exit;
+
+ foreach($re['cols'] as $c=>$f {
+ $ret[] = array(
+ 'name' => $c,
+ 'val' =>$v
+ );
+
+ }
+ $this->jdata($ret);
}