示例#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;
 }
示例#2
0
文件: Db.php 项目: ki8asui/isography
 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;
 }
示例#3
0
文件: Db.php 项目: netvlies/zf
 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;
 }