3 // quick way to build SQL based on a form design..
4 // might have uses later...
6 require_once 'Pman.php';
8 class Pman_Builder_FormToSQL extends Pman {
11 if (!HTML_FlexyFramework::get()->cli) {
19 //print_R($_SERVER['argv']);exit;
20 $file = $_SERVER['argv'][2];
21 if (!file_exists($file)) {
22 die("file $file does not exist");
24 $o = json_decode(file_get_contents($file));
37 foreach((array)$o as $k=>$v) {
55 if (empty($o->xtype)) {