|
@@ 264-266 (lines=3) @@
|
| 261 |
|
$generator = new CodeFileGenerator(); |
| 262 |
|
$code = $generator->generate($class); |
| 263 |
|
|
| 264 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$className.'.php', $code)) { |
| 265 |
|
throw new ZohoCRMORMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file."); |
| 266 |
|
} |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
/** |
|
@@ 407-409 (lines=3) @@
|
| 404 |
|
$generator = new CodeFileGenerator(); |
| 405 |
|
$code = $generator->generate($class); |
| 406 |
|
|
| 407 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$daoClassName.'.php', $code)) { |
| 408 |
|
throw new ZohoCRMORMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file."); |
| 409 |
|
} |
| 410 |
|
} |
| 411 |
|
|
| 412 |
|
private static function camelCase($str, array $noStrip = []) |