AbleCloud PHP SDK
1.8.x
PHP SDK of AbleCloud API
|
Public 成员函数 | |
__construct ($name, $version, $context) | |
put ($bucket, $filePath, $name=NULL) | |
get ($bucket, $name, $filePath) | |
delete ($bucket, $name) | |
replace ($bucket, $name, $filePath) | |
![]() | |
__construct ($name, $version, $context) | |
getName () | |
getVersion () | |
getContext () | |
getLastError () | |
额外继承的成员函数 | |
![]() | |
resetLastError ($errCode=0, $errMessage='') | |
AbleCloud文件存储服务。
ACBlobStoreMgr::__construct | ( | $name, | |
$version, | |||
$context | |||
) |
构造函数。
$name | AbleCloud文件存储服务的名字。 |
$version | AbleCloud文件存储服务的版本。 |
$context | ACContext对象,表示访问该远程服务所依赖的环境信息。 |
ACBlobStoreMgr::delete | ( | $bucket, | |
$name | |||
) |
从BlobStore服务撒上删除指定文件。
$bucket | 要被删除的文件所属的类别名。 |
$name | 要被删除的文件的名字。 |
ACBlobStoreMgr::get | ( | $bucket, | |
$name, | |||
$filePath | |||
) |
从BlobStore服务下载文件。
$bucket | 要下载的文件所属的类别名。 |
$name | 要下载的文件的名字。 |
$filePath | 文件下载后的本地存储路径。 |
ACBlobStoreMgr::put | ( | $bucket, | |
$filePath, | |||
$name = NULL |
|||
) |
向BlobStore服务上传文件。
$bucket | 给定的类别名字。 |
$filePath | 要被上传的文件的本地路径。 |
$name | 可以指定文件被上传后在服务器端的存储名字。如果未指定,则使用从$filePath中提取到的文件名。 |
ACBlobStoreMgr::replace | ( | $bucket, | |
$name, | |||
$filePath | |||
) |
替换BlobStore服务中存储的文件。
$bucket | 要被替换的文件所属的类别名。 |
$name | 要被替换的文件的名字。 |
$filePath | 包含新内容的文件在本地的存储路径。 |