class Queue6

  1. 8.0.x lib/Drush/Queue/Queue6.php Queue6
  2. 7.x lib/Drush/Queue/Queue6.php Queue6

Namespace

Drush\Queue

Hierarchy

Expanded class hierarchy of Queue6

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
Queue6::getQueues public function Returns all queues. Overrides Queue7::getQueues
Queue6::__construct public function
Queue7::getQueue public function Overrides QueueInterface::getQueue
Queue7::run public function Runs a given queue. Overrides QueueInterface::run
QueueBase::$queues protected static property Keep track of queue definitions.
QueueBase::getInfo public function Returns a given queue definition. Overrides QueueInterface::getInfo
QueueBase::listQueues public function Lists all available queues.

File

lib/Drush/Queue/Queue6.php, line 5

View source
class Queue6 extends Queue7 {

  public function __construct() {
    // Drupal 6 has no core queue capabilities, and thus requires contrib.
    if (!module_exists('drupal_queue')) {
      throw new QueueException(dt('The drupal_queue module need to be installed/enabled.'));
    }
    else {
      drupal_queue_include();
    }
  }

  /**
   * {@inheritdoc}
   */
  public function getQueues() {
    if (!isset(static::$queues)) {
      static::$queues = module_invoke_all('cron_queue_info');
      drupal_alter('cron_queue_info', static::$queues);
    }
    return static::$queues;
  }

}