From: Alan Knowles Date: Fri, 14 Oct 2011 05:38:02 +0000 (+0800) Subject: Generator.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1bb65f459da86c8b1c38a3eaee23448e5d447c4e Generator.php --- diff --git a/Generator.php b/Generator.php index 960c86c7..19c9d00b 100644 --- a/Generator.php +++ b/Generator.php @@ -356,7 +356,7 @@ touch Pman/????/DataObjects/".ucfirst($this->table).".php } - $this->classname = 'Pman_'.$mod . '_DataObjects_'. ucfirst($this->table); // replace odd chars? + $this->classname = 'Pman_'.$mod . '_DataObjects_'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));; // replace odd chars? $outfilename = $rd.'/'.$mod.'/'. ucfirst($this->table).'.php';