class DrupalQueue


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
  1. cis7 modules/system/ DrupalQueue
  2. cle7 modules/system/ DrupalQueue
  3. elmsmedia7 modules/system/ DrupalQueue
  4. icor7 modules/system/ DrupalQueue
  5. meedjum_blog7 modules/system/ DrupalQueue
  6. mooc7 modules/system/ DrupalQueue

Factory class for interacting with queues.


Expanded class hierarchy of DrupalQueue


Contains filters are case sensitive
Namesort descending Modifiers Type Description
DrupalQueue::get public static function Returns the queue object for a given name.


modules/system/, line 60
Queue functionality.

View source
class DrupalQueue {
   * Returns the queue object for a given name.
   * The following variables can be set by variable_set or $conf overrides:
   * - queue_class_$name: the class to be used for the queue $name.
   * - queue_default_class: the class to use when queue_class_$name is not
   *   defined. Defaults to SystemQueue, a reliable backend using SQL.
   * - queue_default_reliable_class: the class to use when queue_class_$name is
   *   not defined and the queue_default_class is not reliable. Defaults to
   *   SystemQueue.
   * @param $name
   *   Arbitrary string. The name of the queue to work with.
   * @param $reliable
   *   TRUE if the ordering of items and guaranteeing every item executes at
   *   least once is important, FALSE if scalability is the main concern.
   * @return
   *   The queue object for a given name.
  public static function get($name, $reliable = FALSE) {
    static $queues;
    if (!isset($queues[$name])) {
      $class = variable_get('queue_class_' . $name, NULL);
      if (!$class) {
        $class = variable_get('queue_default_class', 'SystemQueue');
      $object = new $class($name);
      if ($reliable && !$object instanceof DrupalReliableQueueInterface) {
        $class = variable_get('queue_default_reliable_class', 'SystemQueue');
        $object = new $class($name);
      $queues[$name] = $object;
    return $queues[$name];

Related topics

1 string reference to 'DrupalQueue'
og-7.x-1.x.database.php in sites/all/modules/ulmus/og/tests/og-7.x-1.x.database.php
Filled installation of Drupal 7.0, for test purposes.