Exemple #1
0
 /**
  * Get an array of all available queues
  *
  * @return array
  */
 public function getQueues()
 {
     $queues = array();
     foreach ($this->_queue->fetchAll() as $queue) {
         $queues[] = $queue->queue_name;
     }
     return $queues;
 }
Exemple #2
0
 public function getQueues()
 {
     $query = $this->_queueTable->select();
     $query->from($this->_queueTable, array('queue_id', 'queue_name'));
     $list = array();
     foreach ($this->_queueTable->fetchAll($query) as $queue) {
         $list[] = $queue->queue_name;
     }
     return $list;
 }
Exemple #3
0
 public function getQueues()
 {
     $query = $this->_queueTable->select();
     $query->from($this->_queueTable, array('queue_id', 'queue_name'));
     $this->_queues = array();
     foreach ($this->_queueTable->fetchAll($query) as $queue) {
         $this->_queues[$queue->queue_name] = (int) $queue->queue_id;
     }
     $list = array_keys($this->_queues);
     return $list;
 }