try { if ($options['seek'
]) { $reader->
setSeek($options['seek'
]);
} $writer->
writeItems($reader,
$options['items'
]);
} catch (\Exception
$exception) { throw $exception;
} // Report back with an array of status information.
$report =
$writer->
getReport();
// Add the seek position to the report. This is useful for the batch
// operation.
$report['seek'
] =
$reader->
getSeek();
return $report;
}}