Пример #1
0
 /**
  * Remove Permission 
  * Removes the permission with the specified statement id from the queue.
  *   
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryRemovePermission.html      
  * @param mixed $request array of parameters for Amazon_SQS_Model_RemovePermission request or Amazon_SQS_Model_RemovePermission object itself
  * @see Amazon_SQS_Model_RemovePermission
  * @return Amazon_SQS_Model_RemovePermissionResponse Amazon_SQS_Model_RemovePermissionResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function removePermission($request)
 {
     require_once 'Amazon/SQS/Model/RemovePermissionResponse.php';
     return Amazon_SQS_Model_RemovePermissionResponse::fromXML($this->_invoke('RemovePermission'));
 }
Пример #2
0
 /**
  * Remove Permission 
  * Removes the permission with the specified statement id from the queue.
  * 
  * @see http://docs.amazonwebservices.com/AWSSimpleQueueService/2009-02-01/SQSDeveloperGuide/Query_QueryRemovePermission.html
  * @param mixed $request array of parameters for Amazon_SQS_Model_RemovePermissionRequest request
  * or Amazon_SQS_Model_RemovePermissionRequest object itself
  * @see Amazon_SQS_Model_RemovePermission
  * @return Amazon_SQS_Model_RemovePermissionResponse Amazon_SQS_Model_RemovePermissionResponse
  *
  * @throws Amazon_SQS_Exception
  */
 public function removePermission($request)
 {
     if (!$request instanceof Amazon_SQS_Model_RemovePermissionRequest) {
         require_once DRUPAL_ROOT . '/sites/all/libraries/Amazon/SQS/Model/RemovePermissionRequest.php';
         $request = new Amazon_SQS_Model_RemovePermissionRequest($request);
     }
     require_once DRUPAL_ROOT . '/sites/all/libraries/Amazon/SQS/Model/RemovePermissionResponse.php';
     return Amazon_SQS_Model_RemovePermissionResponse::fromXML($this->_invoke($this->_convertRemovePermission($request)));
 }