concrete/src/Foundation/Queue/DatabaseQueueAdapter.php
protected function getQueueId($name)
    {
        $r = $this->db->fetchColumn('select queue_id from Queues where queue_name = ? limit 1', [$name]);

        if ($r === false) {
            throw new RuntimeException(t('Queue does not exist: %s', $name));
        }

        $count = (int) $r;

        return $count;
    }
protected function getQueueId($name)
    {
        $r = $this->db->fetchColumn('select queue_id from Queues where queue_name = ? limit 1', [$name]);

        if ($r === false) {
            throw new RuntimeException(t('Queue does not exist: %s', $name));
        }

        $count = (int) $r;

        return $count;
    }
protected function getQueueId ( $ name ) { $ r = $ this -> db -> fetchColumn ( 'select queue_id from Queues where queue_name = ? limit 1' , [ $ name ] ) ; if ( $ r === false ) { throw new RuntimeException ( t ( 'Queue does not exist: %s' , $ name ) ) ; } $ count = ( int ) $ r ; return $ count ; }
Get the identifier of a queue given its name.

@param string $name The name of a queue

@throws RuntimeException Throws a RuntimeException if the queue does not exist

@return int
Get the identifier of a queue given its name .