You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
517 B

6 years ago
  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. }