public function BatchQueue::getAllItems

cis7 batch.queue.inc public BatchQueue::getAllItems()
cle7 batch.queue.inc public BatchQueue::getAllItems()
elmsmedia7 batch.queue.inc public BatchQueue::getAllItems()
icor7 batch.queue.inc public BatchQueue::getAllItems()
meedjum_blog7 batch.queue.inc public BatchQueue::getAllItems()
mooc7 batch.queue.inc public BatchQueue::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 42
Queue handlers used by the Batch API.

Class

BatchQueue
Defines a batch queue.

Code

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;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.