get_queue_list ( $pcre )

ONLY lists the queue URLs, as an array, on the SQS account.

Access

public

Parameters

Parameter

Type

Required

Description

$pcre

string

Optional

A Perl-Compatible Regular Expression (PCRE) to filter the names against.

Returns

Type

Description

array

The list of matching queue names. If there are no results, the method will return an empty array.

Examples

Get a list of all queues in an account.

// Instantiate
$sqs = new AmazonSQS();
$response = $sqs->get_queue_list();

// Success? (Array, not a CFResponse object)
print_r($response);

See Also

Source

Method defined in services/sqs.class.php | Toggle source view (17 lines) | View on GitHub

public function get_queue_list($pcre = null)
{
    if ($this->use_batch_flow)
    {
        throw new SQS_Exception(__FUNCTION__ . '() cannot be batch requested');
    }

    // Get a list of queues.
    $list = $this->list_queues();
    if ($list = $list->body->QueueUrl())
    {
        $list = $list->map_string($pcre);
        return $list;
    }

    return array();
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback