* $generator = new DB_Table_Generator($db, $database); * $generator->class_write_path = $class_write_path; * $generator->generateTableClassFiles(); * $generator->generateDatabaseFile(); *
* $generator = new DB_Table_Generator($db, $database); * $generator->class_write_path = $class_write_path; * $generator->tables = array('table1', 'table2', 'table3'); * $generator->generateTableClassFiles(); * $generator->generateDatabaseFile(); *
* $obj =& new DB_Table_Generator(); * if ($obj->error) { * // ... error handling code here ... * } *
* $generator = new DB_Table_Generator($db, $database); * echo $generator->buildTablesClasses(); *
* $generator = new DB_Table_Generator($db, $database); * $generator->generateTableClassFiles(); *
* $generator = new DB_Table_Generator($db, $database); * $generator->generateTableClassFiles(); * $generator->generateDatabaseFile(); *