public function MemoryQueue::__construct

public MemoryQueue::__construct($name)

Start working with a queue.

Parameters

$name: Arbitrary string. The name of the queue to work with.

File

modules/system/system.queue.inc, line 317
Queue functionality.

Class

MemoryQueue
Static queue implementation.

Code

public function __construct($name) {
  $this->queue = array();
  $this->id_sequence = 0;
}

© 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/modules!system!system.queue.inc/function/MemoryQueue::__construct/7.x