ALIOSS::get_object_group_index PHP Method

get_object_group_index() public method

获取Object Group 的Object List信息
Since: 2011-11-14
public get_object_group_index ( string $bucket, string $object_group, array $options = null ) : ResponseCore
$bucket string (Required)
$object_group string (Required)
$options array (Optional)
return ResponseCore
    public function get_object_group_index($bucket, $object_group, $options = null)
    {
        //options
        $this->validate_options($options);
        //bucket
        $this->is_empty($bucket, OSS_BUCKET_IS_NOT_ALLOWED_EMPTY);
        //object group
        $this->is_empty($object_group, OSS_OBJECT_GROUP_IS_NOT_ALLOWED_EMPTY);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = 'GET';
        $options[self::OSS_OBJECT] = $object_group;
        $options[self::OSS_CONTENT_TYPE] = 'application/xml';
        //重设Content-Type
        //$options[self::OSS_OBJECT_GROUP] = true;	   //设置?group
        $options[self::OSS_HEADERS] = array(self::OSS_OBJECT_GROUP => self::OSS_OBJECT_GROUP);
        $response = $this->auth($options);
        return $response;
    }