PHP Class Arkade_S3_Helper_Core_File_Storage_Database, magento-s3

Inheritance: extends Mage_Core_Helper_File_Storage_Database
Mostra file Open project: arkadedigital/magento-s3

Public Methods

Method Description
checkDbUsage ( ) : boolean Check whether we are using the database or S3 for storing images.
checkS3Usage ( ) : boolean Check whether we are using S3 for storing images.
getStorageDatabaseModel ( ) : Arkade_S3_Model_Core_File_Storage_S3 | Mage_Core_Model_File_Storage_Database
saveFileToFilesystem ( $filename )
saveUploadedFile ( array $result = [] ) : string Removes any forward slashes from the start of the uploaded file name.

Method Details

checkDbUsage() public method

Check whether we are using the database or S3 for storing images.
public checkDbUsage ( ) : boolean
return boolean

checkS3Usage() public method

Check whether we are using S3 for storing images.
public checkS3Usage ( ) : boolean
return boolean

getStorageDatabaseModel() public method

public getStorageDatabaseModel ( ) : Arkade_S3_Model_Core_File_Storage_S3 | Mage_Core_Model_File_Storage_Database
return Arkade_S3_Model_Core_File_Storage_S3 | Mage_Core_Model_File_Storage_Database

saveFileToFilesystem() public method

public saveFileToFilesystem ( $filename )

saveUploadedFile() public method

This addresses a bug where category pages were being saved with duplicate slashes, e.g. catalog/category//tswifty_4.jpg.
public saveUploadedFile ( array $result = [] ) : string
$result array
return string