public function putObjectAcl($bucket, $object, $acl)
    {
        $this->precheckCommon($bucket, $object, $options, true);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_OBJECT] = $object;
        $options[self::OSS_HEADERS] = array(self::OSS_OBJECT_ACL => $acl);
        $options[self::OSS_SUB_RESOURCE] = 'acl';
        $response = $this->auth($options);
        $result = new PutSetDeleteResult($response);
        return $result->getData();
    }
public function putObjectAcl($bucket, $object, $acl)
    {
        $this->precheckCommon($bucket, $object, $options, true);
        $options[self::OSS_BUCKET] = $bucket;
        $options[self::OSS_METHOD] = self::OSS_HTTP_PUT;
        $options[self::OSS_OBJECT] = $object;
        $options[self::OSS_HEADERS] = array(self::OSS_OBJECT_ACL => $acl);
        $options[self::OSS_SUB_RESOURCE] = 'acl';
        $response = $this->auth($options);
        $result = new PutSetDeleteResult($response);
        return $result->getData();
    }
public function putObjectAcl ( $ bucket , $ object , $ acl ) { $ this -> precheckCommon ( $ bucket , $ object , $ options , true ) ; $ options [ self :: OSS_BUCKET ] = $ bucket ; $ options [ self :: OSS_METHOD ] = self :: OSS_HTTP_PUT ; $ options [ self :: OSS_OBJECT ] = $ object ; $ options [ self :: OSS_HEADERS ] = array ( self :: OSS_OBJECT_ACL => $ acl ) ; $ options [ self :: OSS_SUB_RESOURCE ] = 'acl' ; $ response = $ this -> auth ( $ options ) ; $ result = new PutSetDeleteResult ( $ response ) ; return $ result -> getData ( ) ; }
Sets the object ACL

@param string $bucket bucket name
@param string $object object name
@param string $acl access permissions, valid values are ['default', 'private', 'public-read', 'public-read-write']
@throws OssException
@return null
Sets the object ACL