|
@@ 179-181 (lines=3) @@
|
| 176 |
|
$generator = new CodeFileGenerator(); |
| 177 |
|
$code = $generator->generate($class); |
| 178 |
|
|
| 179 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$className.'.php', $code)) { |
| 180 |
|
throw new ZohoCRMException("An error occurred while creating the class $className. Please verify the target directory or the rights of the file."); |
| 181 |
|
} |
| 182 |
|
} |
| 183 |
|
|
| 184 |
|
/** |
|
@@ 289-291 (lines=3) @@
|
| 286 |
|
$generator = new CodeFileGenerator(); |
| 287 |
|
$code = $generator->generate($class); |
| 288 |
|
|
| 289 |
|
if (!file_put_contents(rtrim($targetDirectory, '/').'/'.$daoClassName.'.php', $code)) { |
| 290 |
|
throw new ZohoCRMException("An error occurred while creating the DAO $daoClassName. Please verify the target directory exists or the rights of the file."); |
| 291 |
|
} |
| 292 |
|
} |
| 293 |
|
|
| 294 |
|
private static function camelCase($str, array $noStrip = []) |