\DtApp\ThinkLibrary\service\tencentCosService

腾讯云对象存储 https://cloud.tencent.com/product/cos Class CosService

Summary

Methods
Properties
Constants
__construct()
instance()
secretId()
secretKey()
region()
bucket()
upload()
No public properties found
No constants found
initialize()
$app
N/A
No private methods found
$secretId
$secretKey
$region
$bucket
N/A

Properties

$app

$app : \think\App

应用实例

Type

\think\App

$secretId

$secretId : 

Type

$secretKey

$secretKey : 

Type

$region

$region : 

Type

$bucket

$bucket : 

Type

Methods

__construct()

__construct(\think\App  $app) 

Service constructor.

Parameters

\think\App $app

instance()

instance(array  $args) : static

静态实例对象

Parameters

array $args

Returns

static

secretId()

secretId(string  $secretId) : $this

Parameters

string $secretId

Returns

$this

secretKey()

secretKey(string  $secretKey) : $this

Parameters

string $secretKey

Returns

$this

region()

region(string  $region) : $this

Parameters

string $region

Returns

$this

bucket()

bucket(string  $bucket) : $this

Parameters

string $bucket

Returns

$this

upload()

upload(string  $object, string  $filePath) : boolean

Parameters

string $object
string $filePath

Returns

boolean

initialize()

initialize() : $this

初始化服务

Returns

$this