|
@@ 212-214 (lines=3) @@
|
| 209 |
|
$generator = new CodeFileGenerator(); |
| 210 |
|
$code = $generator->generate($class); |
| 211 |
|
|
| 212 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$className.'.php', $code)) { |
| 213 |
|
throw new ZohoCRMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file."); |
| 214 |
|
} |
| 215 |
|
} |
| 216 |
|
|
| 217 |
|
/** |
|
@@ 370-372 (lines=3) @@
|
| 367 |
|
$generator = new CodeFileGenerator(); |
| 368 |
|
$code = $generator->generate($class); |
| 369 |
|
|
| 370 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$daoClassName.'.php', $code)) { |
| 371 |
|
throw new ZohoCRMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file."); |
| 372 |
|
} |
| 373 |
|
} |
| 374 |
|
|
| 375 |
|
private static function camelCase($str, array $noStrip = []) |