abstractFetchResource
Hierarchy
Index
Constructors
constructor
Creates a new instance of
FetchResource
.Parameters
optionalprogress: ProgressTracker
The progress tracker.
Returns FetchResource
Properties
publicoptionalprogress
The progress tracker.
Accessors
isAsync
Whether this Resource is loaded asynchronously
Returns boolean
name
The name of the referenced file
Returns string
Methods
resolve
Resolves the file contents
Returns Promise<File>
The resolved file.
setPlayground
Parameters
playground: UniversalPHP
Returns void
staticcreate
Creates a new Resource based on the given file reference
Parameters
ref: FileReference
The file reference to create the Resource for
options: ResourceOptions
Additional options for the Resource
Returns Resource
A new Resource instance
A base class for
Resource
s that require fetching data from a remote URL.