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();
$items = db_query('SELECT data FROM {queue} q WHERE name = :name ORDER BY item_id ASC', array(
':name' => $this->name,
))
->fetchAll();
foreach ($items as $item) {
$result[] = unserialize($item->data);
}
return $result;
}