Retrieves all remaining items in the queue.
This is specific to Batch API and is not part of the DrupalQueueInterface.
public function getAllItems() {
$result = array();
foreach ($this->queue as $item) {
$result[] = $item->data;
}
return $result;
}