示例#1
0
 /**
  * Get Queue Attributes 
  * Gets one or all attributes of a queue. Queues currently have two attributes you can get: ApproximateNumberOfMessages and VisibilityTimeout.
  *   
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryGetQueueAttributes.html      
  * @param mixed $request array of parameters for Amazon_SQS_Model_GetQueueAttributes request or Amazon_SQS_Model_GetQueueAttributes object itself
  * @see Amazon_SQS_Model_GetQueueAttributes
  * @return Amazon_SQS_Model_GetQueueAttributesResponse Amazon_SQS_Model_GetQueueAttributesResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function getQueueAttributes($request)
 {
     require_once 'Amazon/SQS/Model/GetQueueAttributesResponse.php';
     return Amazon_SQS_Model_GetQueueAttributesResponse::fromXML($this->_invoke('GetQueueAttributes'));
 }
示例#2
0
 /**
  * Get Queue Attributes 
  * Gets one or all attributes of a queue. Queues currently have two attributes you can get: ApproximateNumberOfMessages and VisibilityTimeout.
  * 
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryGetQueueAttributes.html
  * @param mixed $request array of parameters for Amazon_SQS_Model_GetQueueAttributesRequest request
  * or Amazon_SQS_Model_GetQueueAttributesRequest object itself
  * @see Amazon_SQS_Model_GetQueueAttributes
  * @return Amazon_SQS_Model_GetQueueAttributesResponse Amazon_SQS_Model_GetQueueAttributesResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function getQueueAttributes($request)
 {
     if (!$request instanceof Amazon_SQS_Model_GetQueueAttributesRequest) {
         require_once dirname(__FILE__) . '/Model/GetQueueAttributesRequest.php';
         $request = new Amazon_SQS_Model_GetQueueAttributesRequest($request);
     }
     require_once dirname(__FILE__) . '/Model/GetQueueAttributesResponse.php';
     return Amazon_SQS_Model_GetQueueAttributesResponse::fromXML($this->_invoke($this->_convertGetQueueAttributes($request)));
 }