SilverCart\Extensions\Assets\Storage\DBFileExtension
Extension for SilverStripe DBFile.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2019 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class DBFileExtension
extends DataExtension
{
- // methods
- protected string cleanFilename()
- protected bool useLegacyFilenames()
- public string getFileID()
- public string getFilePath()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Methods
protected
- cleanFilename() — Performs filename cleanup before sending it back.
- useLegacyFilenames() — Determine if legacy filenames should be used. These do not have hash path parts.
public
- getFileID() — Map file tuple (hash, name, variant) to a filename to be used by flysystem
- getFilePath() — Returns the file path to this file.