PHP Class Webiny\Component\Storage\Driver\AmazonS3\S3StorageDriver

Make sure you sync your system time with amazon: ntpdate -u 0.amazon.pool.ntp.org ntpdate -d 0.amazon.pool.ntp.org
Inheritance: implements Webiny\Component\Storage\Driver\DriverInterface, implements Webiny\Component\Storage\Driver\SizeAwareInterface, use trait Webiny\Component\StdLib\StdObjectTrait
Mostra file Open project: Webiny/Framework

Protected Properties

Property Type Description
$bucket
$cdnDomain
$meta
$recentFiles
$recentKey
$s3Client Webiny\Component\Amazon\S3

Public Methods

Method Description
__construct ( array | ArrayObject $config ) Constructor
createDateFolderStructure ( )
deleteKey ( $key )
getContents ( $key )
getKeys ( $key = '', $recursive = false )
getRecentKey ( )
getSize ( $key )
getTimeModified ( $key )
getURL ( $key )
keyExists ( $key )
renameKey ( $sourceKey, $targetKey )
setContents ( $key, $contents, $append = false )

Method Details

__construct() public method

Constructor
public __construct ( array | ArrayObject $config )
$config array | Webiny\Component\StdLib\StdObject\ArrayObject\ArrayObject

createDateFolderStructure() public method

deleteKey() public method

public deleteKey ( $key )

getContents() public method

public getContents ( $key )

getKeys() public method

public getKeys ( $key = '', $recursive = false )

getRecentKey() public method

public getRecentKey ( )

getSize() public method

public getSize ( $key )

getTimeModified() public method

public getTimeModified ( $key )

getURL() public method

public getURL ( $key )

keyExists() public method

public keyExists ( $key )

renameKey() public method

public renameKey ( $sourceKey, $targetKey )

setContents() public method

public setContents ( $key, $contents, $append = false )

Property Details

$bucket protected_oe property

protected $bucket

$cdnDomain protected_oe property

protected $cdnDomain

$meta protected_oe property

protected $meta

$recentFiles protected_oe property

protected $recentFiles

$recentKey protected_oe property

protected $recentKey

$s3Client protected_oe property

protected S3,Webiny\Component\Amazon $s3Client
return Webiny\Component\Amazon\S3