|
@@ 319-321 (lines=3) @@
|
| 316 |
|
$generator = new CodeFileGenerator(); |
| 317 |
|
$code = $generator->generate($class); |
| 318 |
|
|
| 319 |
|
if (!file_put_contents(rtrim($targetDirectory, '/') . '/' . $className . '.php', $code)) { |
| 320 |
|
throw new ZohoCRMORMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file."); |
| 321 |
|
} |
| 322 |
|
} |
| 323 |
|
|
| 324 |
|
/** |
|
@@ 494-496 (lines=3) @@
|
| 491 |
|
$generator = new CodeFileGenerator(); |
| 492 |
|
$code = $generator->generate($class); |
| 493 |
|
|
| 494 |
|
if (!file_put_contents(rtrim($targetDirectory, '/') . '/' . $daoClassName . '.php', $code)) { |
| 495 |
|
throw new ZohoCRMORMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file."); |
| 496 |
|
} |
| 497 |
|
} |
| 498 |
|
|
| 499 |
|
private static function camelCase($str, array $noStrip = []) |