logLevel=3; $db->open(); $chaos=new ChaosMachineOne(); $chaos->debugMode=true; $chaos->setDb($db); /* $tables=$db->tableSorted(); foreach($tables as $table) { echo "truncate table `".$table."`;
"; } $tables=$db->objectList('table','true'); foreach($tables as $table) { $file=$table.'.php'; if(!file_exists($file)) { $chaos=new ChaosMachineOne(); $chaos->setDb($db); $code="generateCode($table); file_put_contents($file,$code); } } */ /* */