/** * Populates the properties with the response from the list queues request. * * @param string $response The body of the response of the list queues request. * * @return none */ public function parseXml($response) { parent::parseXml($response); $listQueuesResultXml = new \SimpleXMLElement($response); $this->_queueInfos = array(); foreach ($listQueuesResultXml->entry as $entry) { $queueInfo = new QueueInfo(); $queueInfo->parseXml($entry->asXml()); $this->_queueInfos[] = $queueInfo; } }
/** * Gets a queue with specified path. * * @link http://msdn.microsoft.com/en-us/library/windowsazure/hh780764 * * @param string $queuePath The path of the queue. * * @return QueueInfo */ public function getQueue($queuePath) { $httpCallContext = new HttpCallContext(); $httpCallContext->setPath($queuePath); $httpCallContext->setMethod(Resources::HTTP_GET); $httpCallContext->addStatusCode(Resources::STATUS_OK); $response = $this->sendContext($httpCallContext); $queueInfo = new QueueInfo(); $queueInfo->parseXml($response->getBody()); return $queueInfo; }