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








This class contains code for Batch Processing.
Properties
Methods


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


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


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


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


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


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


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


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


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