| @@ 364-376 (lines=13) @@ | ||
| 361 | * |
|
| 362 | * @throws ZohoCRMResponseException |
|
| 363 | */ |
|
| 364 | public function updateRecords($module, $xmlData, $id = null, $wfTrigger = null, $version = 4, $newFormat = 2) |
|
| 365 | { |
|
| 366 | $params['newFormat'] = $newFormat; |
|
| 367 | $params['version'] = $version; |
|
| 368 | if ($wfTrigger) { |
|
| 369 | $params['wfTrigger'] = 'true'; |
|
| 370 | } |
|
| 371 | if ($id) { |
|
| 372 | $params['id'] = $id; |
|
| 373 | } |
|
| 374 | ||
| 375 | return $this->call($module, 'updateRecords', $params, ['xmlData' => $xmlData->asXML()]); |
|
| 376 | } |
|
| 377 | ||
| 378 | /** |
|
| 379 | * Implements updateRelatedRecords API method. |
|
| @@ 391-404 (lines=14) @@ | ||
| 388 | * |
|
| 389 | * @throws ZohoCRMResponseException |
|
| 390 | */ |
|
| 391 | public function updateRelatedRecords($module, $relatedModule, $xmlData, $id = null, $wfTrigger = null, $version = 4, $newFormat = 2) |
|
| 392 | { |
|
| 393 | $params['newFormat'] = $newFormat; |
|
| 394 | $params['version'] = $version; |
|
| 395 | $params['relatedModule'] = $relatedModule; |
|
| 396 | if ($wfTrigger) { |
|
| 397 | $params['wfTrigger'] = 'true'; |
|
| 398 | } |
|
| 399 | if ($id) { |
|
| 400 | $params['id'] = $id; |
|
| 401 | } |
|
| 402 | ||
| 403 | return $this->call($module, 'updateRelatedRecords', $params, ['xmlData' => $xmlData->asXML()]); |
|
| 404 | } |
|
| 405 | ||
| 406 | /** |
|
| 407 | * Implements uploadFile API method. |
|