\DtApp\ThinkLibrary\service\aliyunOssService

阿里云对象存储 https://www.aliyun.com/product/oss Class OssService

Summary

Methods
Properties
Constants
__construct()
instance()
accessKeyId()
accessKeySecret()
endpoint()
bucket()
upload()
No public properties found
No constants found
initialize()
$app
N/A
No private methods found
$accessKeyId
$accessKeySecret
$endpoint
$bucket
N/A

Properties

$app

$app : \think\App

应用实例

Type

\think\App

$accessKeyId

$accessKeyId : 

Type

$accessKeySecret

$accessKeySecret : 

Type

$endpoint

$endpoint : 

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

accessKeyId()

accessKeyId(string  $accessKeyId) : $this

Parameters

string $accessKeyId

Returns

$this

accessKeySecret()

accessKeySecret(string  $accessKeySecret) : $this

Parameters

string $accessKeySecret

Returns

$this

endpoint()

endpoint(string  $endpoint) : $this

Parameters

string $endpoint

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