DataService/Batch.php
- Package
- Default
\Batch
Package: Default








This class contains code for Batch Processing.
Properties
Methods

AddEntity( $entity, $id, $operation) : voidAdds the specified query.
Parameters
| Name | Type | Description |
|---|---|---|
| $entity | ||
| $id | ||
| $operation |

AddQuery(string $query, string $id) : voidAdds the specified query.
Parameters
| Name | Type | Description |
|---|---|---|
| $query | string | IDS query. |
| $id | string | unique batchitem id. |

IntuitBatchResponse(string $id) : voidGets the IntuitBatchResponse with the specified id.
Parameters
| Name | Type | Description |
|---|---|---|
| $id | string | unique batchitem id |

IterateFaultAndPrepareException( $fault) : \IdsExceptionPrepare IdsException out of Fault object.
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $fault |
| Type | Description |
|---|---|
| \IdsException | IdsException object. |

ProcessBatchItemResponse( $oneXmlObj) : \IntuitBatchResponseprocess batch item response
Parameters
Returns
| Name | Type | Description |
|---|---|---|
| $oneXmlObj |
| Type | Description |
|---|---|
| \IntuitBatchResponse | IntuitBatchResponse object. |

Remove( $id) : voidRemoves batchitem with the specified batchitem id.
Parameters
| Name | Type | Description |
|---|---|---|
| $id |

__construct( $serviceContext, $restHandler) : voidInitializes a new instance of the Batch class.
Parameters
| Name | Type | Description |
|---|---|---|
| $serviceContext | The service context. | |
| $restHandler | The rest handler. |

applyAttributes(\IntuitBatchResponse $batchResponse, \SimpleXMLElement $simpleXML) : voidMaps some values from the response xml to the result instance object
Parameters
| Name | Type | Description |
|---|---|---|
| $batchResponse | \IntuitBatchResponse | |
| $simpleXML | \SimpleXMLElement |

getRestHandler() : \SyncRestHandlerReturns handler to communicate with service
Returns
| Type | Description |
|---|---|
| \SyncRestHandler |