Exemplo n.º 1
0
 /**
  * Add Permission 
  * Adds the specified permission(s) to a queue for the specified principal(s). This allows for sharing access to the queue.
  *   
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryAddPermission.html      
  * @param mixed $request array of parameters for Amazon_SQS_Model_AddPermission request or Amazon_SQS_Model_AddPermission object itself
  * @see Amazon_SQS_Model_AddPermission
  * @return Amazon_SQS_Model_AddPermissionResponse Amazon_SQS_Model_AddPermissionResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function addPermission($request)
 {
     require_once 'Amazon/SQS/Model/AddPermissionResponse.php';
     return Amazon_SQS_Model_AddPermissionResponse::fromXML($this->_invoke('AddPermission'));
 }
Exemplo n.º 2
0
 /**
  * Add Permission 
  * Adds the specified permission(s) to a queue for the specified principal(s). This allows for sharing access to the queue.
  * 
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryAddPermission.html
  * @param mixed $request array of parameters for Amazon_SQS_Model_AddPermissionRequest request
  * or Amazon_SQS_Model_AddPermissionRequest object itself
  * @see Amazon_SQS_Model_AddPermission
  * @return Amazon_SQS_Model_AddPermissionResponse Amazon_SQS_Model_AddPermissionResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function addPermission($request)
 {
     if (!$request instanceof Amazon_SQS_Model_AddPermissionRequest) {
         require_once dirname(__FILE__) . '/Model/AddPermissionRequest.php';
         $request = new Amazon_SQS_Model_AddPermissionRequest($request);
     }
     require_once dirname(__FILE__) . '/Model/AddPermissionResponse.php';
     return Amazon_SQS_Model_AddPermissionResponse::fromXML($this->_invoke($this->_convertAddPermission($request)));
 }