/**
  * This will perform a parallelized request to get all of the objects.
  * 
  * @param Array		$actions	This is an array of Amazon_SimpleDB_Model_GetAttributes objects.
  * 
  * @return Array	This is an array of Amazon_SimpleDB_Model_GetAttributesResponse objects.
  */
 public function getAttributes($actions)
 {
     if (!is_array($actions)) {
         throw new Exception("Parameter supplied to " . __FUNCTION__ . " is not an array.");
     }
     require_once 'Amazon/SimpleDB/Model/GetAttributesResponse.php';
     $parameters = array();
     foreach ($actions as $action) {
         $parameters[] = $this->_convertGetAttributes($action);
     }
     $results = $this->_invoke($parameters);
     $objects = array();
     foreach ($results as $result) {
         if ($result != "") {
             $objects[] = Amazon_SimpleDB_Model_GetAttributesResponse::fromXML($result);
         }
     }
     return $objects;
 }
Exemple #2
0
 /**
  * Get Attributes 
  * Returns all of the attributes associated with the item. Optionally, the attributes returned can be limited to
  * the specified AttributeName parameter.
  * If the item does not exist on the replica that was accessed for this operation, an empty attribute is
  * returned. The system does not return an error as it cannot guarantee the item does not exist on other
  * replicas.
  * 
  * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_GetAttributes.html
  * @param mixed $request array of parameters for Amazon_SimpleDB_Model_GetAttributesRequest request
  * or Amazon_SimpleDB_Model_GetAttributesRequest object itself
  * @see Amazon_SimpleDB_Model_GetAttributes
  * @return Amazon_SimpleDB_Model_GetAttributesResponse Amazon_SimpleDB_Model_GetAttributesResponse
  *
  * @throws Amazon_SimpleDB_Exception
  */
 public function getAttributes($request)
 {
     if (!$request instanceof Amazon_SimpleDB_Model_GetAttributesRequest) {
         require_once 'Amazon/SimpleDB/Model/GetAttributesRequest.php';
         $request = new Amazon_SimpleDB_Model_GetAttributesRequest($request);
     }
     require_once 'Amazon/SimpleDB/Model/GetAttributesResponse.php';
     return Amazon_SimpleDB_Model_GetAttributesResponse::fromXML($this->_invoke($this->_convertGetAttributes($request)));
 }
 /**
  * Get Attributes 
  * Returns all of the attributes associated with the item. Optionally, the attributes returned can be limited to
  * the specified AttributeName parameter.
  * If the item does not exist on the replica that was accessed for this operation, an empty attribute is
  * returned. The system does not return an error as it cannot guarantee the item does not exist on other
  * replicas.
  *   
  * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_GetAttributes.html      
  * @param mixed $request array of parameters for Amazon_SimpleDB_Model_GetAttributes request or Amazon_SimpleDB_Model_GetAttributes object itself
  * @see Amazon_SimpleDB_Model_GetAttributes
  * @return Amazon_SimpleDB_Model_GetAttributesResponse Amazon_SimpleDB_Model_GetAttributesResponse
  *
  * @throws Amazon_SimpleDB_Exception
  */
 public function getAttributes($request)
 {
     require_once 'Amazon/SimpleDB/Model/GetAttributesResponse.php';
     return Amazon_SimpleDB_Model_GetAttributesResponse::fromXML($this->_invoke('GetAttributes'));
 }