|
@@ 210-212 (lines=3) @@
|
| 207 |
|
$generator = new CodeFileGenerator(); |
| 208 |
|
$code = $generator->generate($class); |
| 209 |
|
|
| 210 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$className.'.php', $code)) { |
| 211 |
|
throw new ZohoCRMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file."); |
| 212 |
|
} |
| 213 |
|
} |
| 214 |
|
|
| 215 |
|
/** |
|
@@ 329-331 (lines=3) @@
|
| 326 |
|
$generator = new CodeFileGenerator(); |
| 327 |
|
$code = $generator->generate($class); |
| 328 |
|
|
| 329 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$daoClassName.'.php', $code)) { |
| 330 |
|
throw new ZohoCRMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file."); |
| 331 |
|
} |
| 332 |
|
} |
| 333 |
|
|
| 334 |
|
private static function camelCase($str, array $noStrip = []) |