ParsedFileID
class ParsedFileID (View source)
Immutable representation of a parsed fileID broken down into its sub-components.
Methods
ParsedFileID constructor.
The File ID associated with this ParsedFileID if known, or blank if unknown.
Variant component. Usually a string representing some resized version of an image.
Hash build from the content of the file. Usually the first 10 characters of sha1 hash.
Details
        
                            
    __construct(string $filename, string $hash = '', string $variant = '', string $fileID = '')
        
    
    ParsedFileID constructor.
        
                            string
    getFileID()
        
    
    The File ID associated with this ParsedFileID if known, or blank if unknown.
        
                            string
    getFilename()
        
    
    Filename component.
        
                            string
    getVariant()
        
    
    Variant component. Usually a string representing some resized version of an image.
        
                            string
    getHash()
        
    
    Hash build from the content of the file. Usually the first 10 characters of sha1 hash.
        
                            array
    getTuple()
        
    
    Convert this parsed file ID to an array representation.
        
                            ParsedFileID
    setFileID(string $fileID)
        
    
    No description
        
                            ParsedFileID
    setFilename(string $filename)
        
    
    No description
        
                            ParsedFileID
    setVariant(string $variant)
        
    
    No description
        
                            ParsedFileID
    setHash(string $hash)
        
    
    No description