projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ab8b6af
)
Generator.php
author
Alan Knowles
<alan@akbkhome.com>
Fri, 14 Oct 2011 05:38:18 +0000
(13:38 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 14 Oct 2011 05:38:18 +0000
(13:38 +0800)
Generator.php
patch
|
blob
|
history
diff --git
a/Generator.php
b/Generator.php
index
f284831
..
36e9fa8
100644
(file)
--- a/
Generator.php
+++ b/
Generator.php
@@
-359,7
+359,7
@@
touch Pman/????/DataObjects/".ucfirst($this->table).".php
$this->classname = 'Pman_'.$mod . '_DataObjects_'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($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';
+ $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';
$orig = $ff->page->rootDir .'/Pman/'.$mod.'/DataObjects/'. preg_replace('/[^A-Z0-9]+/i','_',ucfirst(trim($this->table)));.'.php';