1 | <?php |
||
26 | class QiniuStoreAPI{ |
||
27 | |||
28 | private $accessKey = 'accessKey'; //AK |
||
29 | private $secretKey = 'secretKey'; //SK |
||
30 | private $bucket = 'bucket';//默认空间名 |
||
31 | private $auth; |
||
32 | |||
33 | /** |
||
34 | * 参数初始化 |
||
35 | * @param $appKey |
||
36 | * @param $appSecret |
||
37 | * @param string $format |
||
38 | */ |
||
39 | public function __construct(){ |
||
44 | |||
45 | /** |
||
46 | *第三方资源抓取 |
||
47 | *@param $url第三方地址 |
||
48 | *@param $bucket云空间 |
||
49 | *@param $filename生成的名称 |
||
50 | *@return bool |
||
51 | */ |
||
52 | public function fetch($url, $filename, $bucket = ''){ |
||
63 | |||
64 | /** |
||
65 | *@param $filePath 要上传文件的本地路径 |
||
66 | *@param $key 上传到七牛后保存的文件名 |
||
67 | *@param $bucket 上传的空间名称 |
||
68 | *@return bool |
||
69 | */ |
||
70 | public function Upload($filePath, $key, $bucket = ''){ |
||
88 | |||
89 | /** |
||
90 | *删除文件 |
||
91 | */ |
||
92 | public function delete($key, $bucket = ''){ |
||
107 | |||
108 | } |
This check looks for functions that have already been defined in other files.
Some Codebases, like WordPress, make a practice of defining functions multiple times. This may lead to problems with the detection of function parameters and types. If you really need to do this, you can mark the duplicate definition with the
@ignore
annotation.See also the PhpDoc documentation for @ignore.