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.
		
		
		
		
			
				
					25 lines
				
				619 B
			
		
		
			
		
	
	
					25 lines
				
				619 B
			|   
											7 months ago
										 | <?php | ||
|  | 
 | ||
|  | include_once dirname(dirname(__FILE__)). "/Core/OssException.php"; | ||
|  | 
 | ||
|  | /** | ||
|  |  * Class AppendResult | ||
|  |  * @package OSS\Result | ||
|  |  */ | ||
|  | class AppendResult extends Result | ||
|  | { | ||
|  |     /** | ||
|  |      * Get the value of next-append-position from append's response headers | ||
|  |      * | ||
|  |      * @return int | ||
|  |      * @throws OssException | ||
|  |      */ | ||
|  |     protected function parseDataFromResponse() | ||
|  |     { | ||
|  |         $header = $this->rawResponse->header; | ||
|  |         if (isset($header["x-oss-next-append-position"])) { | ||
|  |             return intval($header["x-oss-next-append-position"]); | ||
|  |         } | ||
|  |         throw new OssException("cannot get next-append-position"); | ||
|  |     } | ||
|  | } |