DeleteObjectsResult.php 517 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace OSS\Result;
  3. /**
  4. * Class DeleteObjectsResult
  5. * @package OSS\Result
  6. */
  7. class DeleteObjectsResult extends Result
  8. {
  9. /**
  10. * @return array()
  11. */
  12. protected function parseDataFromResponse()
  13. {
  14. $body = $this->rawResponse->body;
  15. $xml = simplexml_load_string($body);
  16. $objects = array();
  17. if (isset($xml->Deleted)) {
  18. foreach($xml->Deleted as $deleteKey)
  19. $objects[] = $deleteKey->Key;
  20. }
  21. return $objects;
  22. }
  23. }