PHP Класс Imbo\Storage\S3

Parameters for this adapter: - (string) key Your AWS access key - (string) secret Your AWS secret key - (string) bucket The name of the bucket to store the files in. The bucket should exist prior to using this client. Imbo will not try to automatically add the bucket for you.
Автор: Christer Edvartsen ([email protected])
Наследование: implements Imbo\Storage\StorageInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( array $params = null, S3Client $client = null ) Class constructor
delete ( $user, $imageIdentifier )
getImage ( $user, $imageIdentifier )
getLastModified ( $user, $imageIdentifier )
getStatus ( )
imageExists ( $user, $imageIdentifier )
store ( $user, $imageIdentifier, $imageData )

Приватные методы

Метод Описание
getClient ( ) : S3Client Get the S3Client instance
getImagePath ( string $user, string $imageIdentifier ) : string Get the path to an image

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

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

Class constructor
public __construct ( array $params = null, S3Client $client = null )
$params array Parameters for the adapter
$client Aws\S3\S3Client Configured S3Client instance

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

public delete ( $user, $imageIdentifier )

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

public getImage ( $user, $imageIdentifier )

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

public getLastModified ( $user, $imageIdentifier )

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

public getStatus ( )

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

public imageExists ( $user, $imageIdentifier )

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

public store ( $user, $imageIdentifier, $imageData )