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

Inheritance: extends Magento\Framework\DataObject
Afficher le fichier Open project: arkadedigital/magento2-s3

Protected Properties

Свойство Type Description
$mediaBaseDirectory string Store media base directory path

Méthodes publiques

Méthode 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 )

Méthodes protégées

Méthode Description
getBucket ( )

Method Details

__construct() public méthode

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 méthode

public clear ( )

copyFile() public méthode

public copyFile ( $oldFilePath, $newFilePath )

deleteDirectory() public méthode

public deleteDirectory ( $path )

deleteFile() public méthode

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

exportDirectories() public méthode

public exportDirectories ( $offset, $count = 100 )

exportFiles() public méthode

public exportFiles ( $offset, $count = 100 )

fileExists() public méthode

public fileExists ( $filename )

getBucket() protected méthode

protected getBucket ( )

getConnectionName() public méthode

Retrieve connection name
public getConnectionName ( ) : null
Résultat null

getDirectoryFiles() public méthode

public getDirectoryFiles ( $path )

getMediaBaseDirectory() public méthode

Retrieve media base directory path
public getMediaBaseDirectory ( ) : string
Résultat string

getStorageName() public méthode

Return storage name
public getStorageName ( ) : Magento\Framework\Phrase
Résultat Magento\Framework\Phrase

getSubdirectories() public méthode

public getSubdirectories ( $path )

hasErrors() public méthode

public hasErrors ( ) : boolean
Résultat boolean

importDirectories() public méthode

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

importFiles() public méthode

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

init() public méthode

Initialisation
public init ( )

loadByFilename() public méthode

public loadByFilename ( string $filename )
$filename string

renameFile() public méthode

public renameFile ( $oldFilePath, $newFilePath )

saveFile() public méthode

public saveFile ( $filename )

Property Details

$mediaBaseDirectory protected_oe property

Store media base directory path
protected string $mediaBaseDirectory
Résultat string