Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function updateQueue($queueName, array $queueOptions = array())
 {
     $attributes = array();
     foreach ($queueOptions as $name => $value) {
         $attributes[] = array('Name' => $name, 'Value' => $value);
     }
     $this->parseResponse($this->sqs->set_queue_attributes($this->getQueueUrl($queueName), $attributes));
     return true;
 }
 /**
  * Method: set_queue_attributes()
  * 	Identical to <AmazonSQS::set_queue_attributes()>, except that you don't need to pass in a queue URL.
  * 
  * Access:
  * 	public
  * 
  * Parameters:
  * 	opt - See <AmazonSQS::set_queue_attributes()>.
  * 
  * Returns:
  * 	<TarzanHTTPResponse> object
  * 
  * See Also:
  * 	Example Usage - http://tarzan-aws.com/docs/examples/sqsqueue/set_queue_attributes.phps
  */
 public function set_queue_attributes($opt = null)
 {
     if ($this->queue_url) {
         return parent::set_queue_attributes($this->queue_url, $opt);
     }
     throw new SQSQueue_Exception(SQSQUEUE_DEFAULT_ERROR);
 }