SilverStripe\Assets\FilenameParsing\ParsedFileID
Immutable representation of a parsed fileID broken down into its sub-components.
Synopsis
class ParsedFileID
{
- // methods
- public void __construct()
- public string getFileID()
- public string getFilename()
- public string getVariant()
- public string getHash()
- public array getTuple()
- public ParsedFileID setFileID()
- public ParsedFileID setFilename()
- public ParsedFileID setVariant()
- public ParsedFileID setHash()
Members
private
- $fileID — string
- $filename — string
- $hash — string
- $variant — string
Methods
public
- __construct() — ParsedFileID constructor.
- getFileID() — The File ID associated with this ParsedFileID if known, or blank if unknown.
- getFilename() — Filename component.
- getHash() — Hash build from the content of the file. Usually the first 10 characters of sha1 hash.
- getTuple() — Convert this parsed file ID to an array representation.
- getVariant() — Variant component. Usually a string representing some resized version of an image.
- setFileID()
- setFilename()
- setHash()
- setVariant()