/** Counters for batch operations */
public $successCount = 0, $failCount = 0;
- /** Array to indicate which items of the batch operations failed */
+ /** Array to indicate which items of the batch operations were successful */
public $success = array();
/*semi-private*/ var $errors = array();
return $status;
}
+ /**
+ * Cleanup a failed batch. The batch was only partially successful, so
+ * rollback by removing all items that were succesfully copied.
+ *
+ * @param Status $storeStatus
+ * @param array $storeBatch
+ */
function cleanupFailedBatch( $storeStatus, $storeBatch ) {
$cleanupBatch = array();