class Pman_Core_Generator extends DB_DataObject_Generator
{
-
+
+ function getAuth()
+ {
+
+ die("do not use this directly.. - use Core/RunGenerator");
+
+ }
// inherrited..
// $tablekeys
continue;
}
foreach(scandir($options['rootDir'].'/'.$m) as $f) {
+
+ echo "SCAN {$options['rootDir']} $f\n";
+
if (!strlen($f) || $f[0] == '.') {
continue;
}
$cli = $options['cli'];
foreach($this->tables as $this->table) {
+
$this->table = trim($this->table);
$tn = strtolower($this->table);
$mod = $this->modmap[$tn];
continue;
}
+ $clean_table = preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));
- $this->classname = 'Pman_'.$mod . '_DataObjects_'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));; // replace odd chars?
+ $this->classname = 'Pman_'.$mod . '_DataObjects_'. $clean_table; // replace odd chars?
- $outfilename = $rd.'/'.$mod.'/'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));'.php';
- $orig = $ff->page->rootDir .'/Pman/'.$mod.'/DataObjects/'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));.'.php';
+ $outfilename = $rd.'/'.$mod.'/'. $clean_table .'.php';
+ $orig = $ff->page->rootDir .'/Pman/'.$mod.'/DataObjects/'. $clean_table.'.php';
// file_get_contents???