ResourceInterface
in
Tags
Table of Contents
Methods
- getCachedFiles() : array<string, array<string|int, string>>
- List files cached for a resource.
- getMeta() : ResourceMeta
- Returns resource's basic metadata (URL, mime type, size, modification date, etc.)
- getResourcePath() : string
- Returns path to the file storing a repository resource payload.
Methods
getCachedFiles()
List files cached for a resource.
public
getCachedFiles(int $order) : array<string, array<string|int, string>>
Returnes 2D array with first dimension indicating available widths and second dimension listing heights available for a given width. Both dimensions are encoded as strings left-padded with zeros up to 5 digits length.
Parameters
- $order : int
-
\SCANDIR_SORT_ASCENDING or SCANDIR_SORT_DESCENDING
Return values
array<string, array<string|int, string>>getMeta()
Returns resource's basic metadata (URL, mime type, size, modification date, etc.)
public
getMeta() : ResourceMeta
Return values
ResourceMetagetResourcePath()
Returns path to the file storing a repository resource payload.
public
getResourcePath() : string