PHP Класс Gaufrette\Adapter\AwsS3

Автор: Michael Dowling ([email protected])
Наследование: implements Gaufrette\Adapter, implements Gaufrette\Adapter\MetadataSupporter, implements Gaufrette\Adapter\ListKeysAware, implements Gaufrette\Adapter\SizeCalculator
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$bucket
$bucketExists
$detectContentType
$metadata
$options
$service

Открытые методы

Метод Описание
__construct ( S3Client $service, $bucket, array $options = [], $detectContentType = false )
delete ( $key )
exists ( $key )
getMetadata ( $key )
getUrl ( string $key, array $options = [] ) : string Gets the publicly accessible URL of an Amazon S3 object.
isDirectory ( $key )
keys ( )
listKeys ( $prefix = '' )
mtime ( $key )
read ( $key )
rename ( $sourceKey, $targetKey )
setMetadata ( $key, $metadata )
size ( $key )
write ( $key, $content )

Защищенные методы

Метод Описание
computeKey ( string $path ) Computes the key from the specified path.
computePath ( $key )
ensureBucketExists ( ) Ensures the specified bucket exists. If the bucket does not exists and the create option is set to true, it will try to create the bucket. The bucket is created using the same region as the supplied client object.
getOptions ( $key, array $options = [] )

Описание методов

__construct() публичный Метод

public __construct ( S3Client $service, $bucket, array $options = [], $detectContentType = false )
$service Aws\S3\S3Client
$options array

computeKey() защищенный Метод

Computes the key from the specified path.
protected computeKey ( string $path )
$path string return string

computePath() защищенный Метод

protected computePath ( $key )

delete() публичный Метод

public delete ( $key )

ensureBucketExists() защищенный Метод

Ensures the specified bucket exists. If the bucket does not exists and the create option is set to true, it will try to create the bucket. The bucket is created using the same region as the supplied client object.
protected ensureBucketExists ( )

exists() публичный Метод

public exists ( $key )

getMetadata() публичный Метод

public getMetadata ( $key )

getOptions() защищенный Метод

protected getOptions ( $key, array $options = [] )
$options array

getUrl() публичный Метод

Gets the publicly accessible URL of an Amazon S3 object.
public getUrl ( string $key, array $options = [] ) : string
$key string Object key
$options array Associative array of options used to buld the URL - expires: The time at which the URL should expire represented as a UNIX timestamp - Any options available in the Amazon S3 GetObject operation may be specified.
Результат string

isDirectory() публичный Метод

public isDirectory ( $key )

keys() публичный Метод

public keys ( )

listKeys() публичный Метод

public listKeys ( $prefix = '' )

mtime() публичный Метод

public mtime ( $key )

read() публичный Метод

public read ( $key )

rename() публичный Метод

public rename ( $sourceKey, $targetKey )

setMetadata() публичный Метод

public setMetadata ( $key, $metadata )

size() публичный Метод

public size ( $key )

write() публичный Метод

public write ( $key, $content )

Описание свойств

$bucket защищенное свойство

protected $bucket

$bucketExists защищенное свойство

protected $bucketExists

$detectContentType защищенное свойство

protected $detectContentType

$metadata защищенное свойство

protected $metadata

$options защищенное свойство

protected $options

$service защищенное свойство

protected $service