On this page
public function BatchMemoryQueue::getAllItems
public BatchMemoryQueue::getAllItems()
Retrieves all remaining items in the queue.
This is specific to Batch API and is not part of the DrupalQueueInterface.
File
- includes/batch.queue.inc, line 77
- Queue handlers used by the Batch API.
Class
- BatchMemoryQueue
- Defines a batch queue for non-progressive batches.
Code
public function getAllItems() {
$result = array();
foreach ($this->queue as $item) {
$result[] = $item->data;
}
return $result;
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!batch.queue.inc/function/BatchMemoryQueue::getAllItems/7.x