public function getObject($bucket, $object, $options = NULL)
    {
        $this->precheckCommon($bucket, $object, $options);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_GET;
        $options[self::OSS_OBJECT] = $object;
        if (isset($options[self::OSS_LAST_MODIFIED])) {
            $options[self::OSS_HEADERS][self::OSS_IF_MODIFIED_SINCE] = $options[self::OSS_LAST_MODIFIED];
            unset($options[self::OSS_LAST_MODIFIED]);
        }
        if (isset($options[self::OSS_ETAG])) {
            $options[self::OSS_HEADERS][self::OSS_IF_NONE_MATCH] = $options[self::OSS_ETAG];
            unset($options[self::OSS_ETAG]);
        }
        if (isset($options[self::OSS_RANGE])) {
            $range = $options[self::OSS_RANGE];
            $options[self::OSS_HEADERS][self::OSS_RANGE] = "bytes=$range";
            unset($options[self::OSS_RANGE]);
        }
        $response = $this->auth($options);
        $result = new BodyResult($response);
        return $result->getData();
    }
public function getObject($bucket, $object, $options = NULL)
    {
        $this->precheckCommon($bucket, $object, $options);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_GET;
        $options[self::OSS_OBJECT] = $object;
        if (isset($options[self::OSS_LAST_MODIFIED])) {
            $options[self::OSS_HEADERS][self::OSS_IF_MODIFIED_SINCE] = $options[self::OSS_LAST_MODIFIED];
            unset($options[self::OSS_LAST_MODIFIED]);
        }
        if (isset($options[self::OSS_ETAG])) {
            $options[self::OSS_HEADERS][self::OSS_IF_NONE_MATCH] = $options[self::OSS_ETAG];
            unset($options[self::OSS_ETAG]);
        }
        if (isset($options[self::OSS_RANGE])) {
            $range = $options[self::OSS_RANGE];
            $options[self::OSS_HEADERS][self::OSS_RANGE] = "bytes=$range";
            unset($options[self::OSS_RANGE]);
        }
        $response = $this->auth($options);
        $result = new BodyResult($response);
        return $result->getData();
    }
public function getObject ( $ bucket , $ object , $ options = NULL ) { $ this -> precheckCommon ( $ bucket , $ object , $ options ) ; $ options [ self :: OSS_BUCKET ] = $ bucket ; $ options [ self :: OSS_METHOD ] = self :: OSS_HTTP_GET ; $ options [ self :: OSS_OBJECT ] = $ object ; if ( isset ( $ options [ self :: OSS_LAST_MODIFIED ] ) ) { $ options [ self :: OSS_HEADERS ] [ self :: OSS_IF_MODIFIED_SINCE ] = $ options [ self :: OSS_LAST_MODIFIED ] ; unset ( $ options [ self :: OSS_LAST_MODIFIED ] ) ; } if ( isset ( $ options [ self :: OSS_ETAG ] ) ) { $ options [ self :: OSS_HEADERS ] [ self :: OSS_IF_NONE_MATCH ] = $ options [ self :: OSS_ETAG ] ; unset ( $ options [ self :: OSS_ETAG ] ) ; } if ( isset ( $ options [ self :: OSS_RANGE ] ) ) { $ range = $ options [ self :: OSS_RANGE ] ; $ options [ self :: OSS_HEADERS ] [ self :: OSS_RANGE ] = "bytes=$range" ; unset ( $ options [ self :: OSS_RANGE ] ) ; } $ response = $ this -> auth ( $ options ) ; $ result = new BodyResult ( $ response ) ; return $ result -> getData ( ) ; }
Gets Object content

@param string $bucket bucket name
@param string $object object name
@param array $options It must contain ALIOSS::OSS_FILE_DOWNLOAD. And ALIOSS::OSS_RANGE is optional and empty means to download the whole file.
@return string
Gets Object content