1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace OSS\Result;
- use OSS\Core\OssException;
- class AclResult extends Result
- {
-
- protected function parseDataFromResponse()
- {
- $content = $this->rawResponse->body;
- if (empty($content)) {
- throw new OssException("body is null");
- }
- $xml = simplexml_load_string($content);
- if (isset($xml->AccessControlList->Grant)) {
- return strval($xml->AccessControlList->Grant);
- } else {
- throw new OssException("xml format exception");
- }
- }
- }
|