PHP 클래스 org\upload\driver\qiniu\QiniuStorage

파일 보기 프로젝트 열기: top-think/thinkphp-extend

공개 프로퍼티들

프로퍼티 타입 설명
$QINIU_RSF_HOST
$QINIU_RS_HOST
$QINIU_UP_HOST
$timeout

공개 메소드들

메소드 설명
UploadToken ( $sk, $ak, $param )
__construct ( $config )
accessToken ( $url, $body = '' )
buildUrlParam ( )
dealWithType ( $key, $type )
del ( $file ) 删除单个文件
delBatch ( $files ) 批量删除文件
downLink ( $key ) 获取文件下载资源链接
getList ( $query = [], $path = '' ) 获取某个路径下的文件列表
info ( $key ) 获取某个文件的信息
qiniuEncode ( $str )
qiniuEscapequotes ( $str )
rename ( $file, $new_file ) 重命名单个文件
sign ( $sk, $ak, $data )
signWithData ( $sk, $ak, $data )
upload ( $config, $file )

비공개 메소드들

메소드 설명
error ( string $header, $body ) 获取请求错误信息
request ( string $path, string $method, array $headers = null, resource $body = null ) : boolean 请求云服务器
response ( string $text ) : array 获取响应数据

메소드 상세

UploadToken() 공개 메소드

public UploadToken ( $sk, $ak, $param )

__construct() 공개 메소드

public __construct ( $config )

accessToken() 공개 메소드

public accessToken ( $url, $body = '' )

buildUrlParam() 공개 메소드

public buildUrlParam ( )

dealWithType() 공개 메소드

public dealWithType ( $key, $type )

del() 공개 메소드

删除单个文件
public del ( $file )

delBatch() 공개 메소드

批量删除文件
public delBatch ( $files )

getList() 공개 메소드

获取某个路径下的文件列表
public getList ( $query = [], $path = '' )

info() 공개 메소드

获取某个文件的信息
public info ( $key )

qiniuEncode() 공개 정적인 메소드

public static qiniuEncode ( $str )

qiniuEscapequotes() 공개 정적인 메소드

public static qiniuEscapequotes ( $str )

rename() 공개 메소드

重命名单个文件
public rename ( $file, $new_file )

sign() 공개 정적인 메소드

public static sign ( $sk, $ak, $data )

signWithData() 공개 정적인 메소드

public static signWithData ( $sk, $ak, $data )

upload() 공개 메소드

public upload ( $config, $file )

프로퍼티 상세

$QINIU_RSF_HOST 공개적으로 프로퍼티

public $QINIU_RSF_HOST

$QINIU_RS_HOST 공개적으로 프로퍼티

public $QINIU_RS_HOST

$QINIU_UP_HOST 공개적으로 프로퍼티

public $QINIU_UP_HOST

$timeout 공개적으로 프로퍼티

public $timeout