Exemplo n.º 1
0
 /**
  * Select 
  * The Select operation returns a set of item names and associate attributes that match the
  * query expression. Select operations that run longer than 5 seconds will likely time-out
  * and return a time-out error response.
  * 
  * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_Select.html
  * @param mixed $request array of parameters for Amazon_SimpleDB_Model_SelectRequest request
  * or Amazon_SimpleDB_Model_SelectRequest object itself
  * @see Amazon_SimpleDB_Model_Select
  * @return Amazon_SimpleDB_Model_SelectResponse Amazon_SimpleDB_Model_SelectResponse
  *
  * @throws Amazon_SimpleDB_Exception
  */
 public function select($request)
 {
     if (!$request instanceof Amazon_SimpleDB_Model_SelectRequest) {
         require_once 'Amazon/SimpleDB/Model/SelectRequest.php';
         $request = new Amazon_SimpleDB_Model_SelectRequest($request);
     }
     require_once 'Amazon/SimpleDB/Model/SelectResponse.php';
     return Amazon_SimpleDB_Model_SelectResponse::fromXML($this->_invoke($this->_convertSelect($request)));
 }
Exemplo n.º 2
0
 /**
  * Select 
  * The Select operation returns a set of item names and associate attributes that match the
  * query expression. Select operations that run longer than 5 seconds will likely time-out
  * and return a time-out error response.
  *   
  * @see http://docs.amazonwebservices.com/AmazonSimpleDB/2009-04-15/DeveloperGuide/SDB_API_Select.html      
  * @param mixed $request array of parameters for Amazon_SimpleDB_Model_Select request or Amazon_SimpleDB_Model_Select object itself
  * @see Amazon_SimpleDB_Model_Select
  * @return Amazon_SimpleDB_Model_SelectResponse Amazon_SimpleDB_Model_SelectResponse
  *
  * @throws Amazon_SimpleDB_Exception
  */
 public function select($request)
 {
     require_once 'Amazon/SimpleDB/Model/SelectResponse.php';
     return Amazon_SimpleDB_Model_SelectResponse::fromXML($this->_invoke('Select'));
 }