|
@@ 198-200 (lines=3) @@
|
| 195 |
|
$generator = new CodeFileGenerator(); |
| 196 |
|
$code = $generator->generate($class); |
| 197 |
|
|
| 198 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$className.'.php', $code)) { |
| 199 |
|
throw new ZohoCRMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file."); |
| 200 |
|
} |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
/** |
|
@@ 312-314 (lines=3) @@
|
| 309 |
|
$generator = new CodeFileGenerator(); |
| 310 |
|
$code = $generator->generate($class); |
| 311 |
|
|
| 312 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$daoClassName.'.php', $code)) { |
| 313 |
|
throw new ZohoCRMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file."); |
| 314 |
|
} |
| 315 |
|
} |
| 316 |
|
|
| 317 |
|
private static function camelCase($str, array $noStrip = []) |