Class Storage
public
|
#
__construct( string $accessKey = null, string $secretKey = null, boolean $useSSL = DEFAULT_USE_SSL, string $endpoint = DEFAULT_STORAGE_ENDPOINT )
构造函数 |
public
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
array
|
|
public static
array
|
|
public static
boolean
|
|
public static
mixed
|
|
public static
boolean
|
|
public static
boolean
|
|
public static
array
|
|
public static
array
|
#
inputResource( string & $resource, integer $bufferSize = false, string $md5sum = '' )
为打开的文件句柄创建一个可以用于 putObject() 上传的 array |
public static
boolean
|
|
public static
boolean
|
#
putObjectFile( string $file, string $bucket, string $uri, constant $metaHeaders = array(), array $contentType = null, string $contentType,… )
Put an object from a file (legacy function) |
public static
boolean
|
#
putObjectString( string $string, string $bucket, string $uri, constant $metaHeaders = array(), array $contentType = false, string $contentType,… )
Put an object from a string (legacy function) |
public static
boolean
|
#
postObject( string $bucket, constant $uri, array $metaHeaders = array(), array $requestHeaders = Array() )
修改一个 Object 的属性 |
public static
mixed
|
|
public static
mixed
|
|
public static
mixed
|
#
copyObject( string $srcBucket, string $srcUri, string $bucket, string $uri, array $metaHeaders = array(), array $requestHeaders = array() )
从一个 Bucket 复制一个 Object 到另一个 Bucket |
public static
boolean
|
#
setAccessControlPolicy( string $bucket, string $uri = '', array $acp = array() )
Set object or bucket Access Control Policy |
public static
boolean
|
|
public static
string
|
|
public static
|
#
getTempUrl( string $bucket, string $uri, string $method, integer $seconds )
获取一个 Object 的外网临时访问 URL |
public static
string
|
|
public static
boolean
|
|
public static
mixed
|
|
public static
|
|
public static
|
string |
ACL_PRIVATE
|
#
''
|
string |
ACL_PUBLIC_READ
|
#
'.r:*'
|
public static
string
|
$defDelimiter
默认使用的分隔符,getBucket() 等用到 |
#
null
|
public static
|
$endpoint
|
#
DEFAULT_STORAGE_ENDPOINT
|
public static
|
$proxy
|
#
null
|
public static
boolean
|
$useSSL
使用 SSL 连接? |
#
DEFAULT_USE_SSL
|
public static
boolean
|
$useSSLValidation
是否验证 SSL 证书 |
#
false
|
public static
const
|
$useSSLVersion
使用的 SSL 版本 |
#
1
|
public static
boolean
|
$useExceptions
出现错误的时候是否使用 PHP Exception(默认使用 trigger_error 纪录错误) |
#
false
|