PHP Class Arkade\S3\Model\MediaStorage\File\Storage\S3

Inheritance: extends Magento\Framework\DataObject
Show file Open project: arkadedigital/magento2-s3

Protected Properties

Property Type Description
$mediaBaseDirectory string Store media base directory path

Public Methods

Method Description
__construct ( Data $helper, Magento\MediaStorage\Helper\File\Media $mediaHelper, Magento\MediaStorage\Helper\File\Storage\Database $storageHelper, Psr\Log\LoggerInterface $logger )
clear ( )
copyFile ( $oldFilePath, $newFilePath )
deleteDirectory ( $path )
deleteFile ( string $path ) Delete file from Amazon S3
exportDirectories ( $offset, $count = 100 )
exportFiles ( $offset, $count = 100 )
fileExists ( $filename )
getConnectionName ( ) : null Retrieve connection name
getDirectoryFiles ( $path )
getMediaBaseDirectory ( ) : string Retrieve media base directory path
getStorageName ( ) : Magento\Framework\Phrase Return storage name
getSubdirectories ( $path )
hasErrors ( ) : boolean
importDirectories ( array $dirs = [] )
importFiles ( array $files = [] )
init ( ) Initialisation
loadByFilename ( string $filename )
renameFile ( $oldFilePath, $newFilePath )
saveFile ( $filename )

Protected Methods

Method Description
getBucket ( )

Method Details

__construct() public method

public __construct ( Data $helper, Magento\MediaStorage\Helper\File\Media $mediaHelper, Magento\MediaStorage\Helper\File\Storage\Database $storageHelper, Psr\Log\LoggerInterface $logger )
$helper Arkade\S3\Helper\Data
$mediaHelper Magento\MediaStorage\Helper\File\Media
$storageHelper Magento\MediaStorage\Helper\File\Storage\Database
$logger Psr\Log\LoggerInterface

clear() public method

public clear ( )

copyFile() public method

public copyFile ( $oldFilePath, $newFilePath )

deleteDirectory() public method

public deleteDirectory ( $path )

deleteFile() public method

Delete file from Amazon S3
public deleteFile ( string $path )
$path string

exportDirectories() public method

public exportDirectories ( $offset, $count = 100 )

exportFiles() public method

public exportFiles ( $offset, $count = 100 )

fileExists() public method

public fileExists ( $filename )

getBucket() protected method

protected getBucket ( )

getConnectionName() public method

Retrieve connection name
public getConnectionName ( ) : null
return null

getDirectoryFiles() public method

public getDirectoryFiles ( $path )

getMediaBaseDirectory() public method

Retrieve media base directory path
public getMediaBaseDirectory ( ) : string
return string

getStorageName() public method

Return storage name
public getStorageName ( ) : Magento\Framework\Phrase
return Magento\Framework\Phrase

getSubdirectories() public method

public getSubdirectories ( $path )

hasErrors() public method

public hasErrors ( ) : boolean
return boolean

importDirectories() public method

public importDirectories ( array $dirs = [] )
$dirs array

importFiles() public method

public importFiles ( array $files = [] )
$files array

init() public method

Initialisation
public init ( )

loadByFilename() public method

public loadByFilename ( string $filename )
$filename string

renameFile() public method

public renameFile ( $oldFilePath, $newFilePath )

saveFile() public method

public saveFile ( $filename )

Property Details

$mediaBaseDirectory protected property

Store media base directory path
protected string $mediaBaseDirectory
return string