VFSResource
Hierarchy
- Resource
- VFSResource
Index
Constructors
constructor
Creates a new instance of
VFSResource
.Parameters
resource: VFSReference
The VFS reference.
optionalprogress: ProgressTracker
The progress tracker.
Returns VFSResource
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
Resource
that represents a file in the VFS (virtual file system) of the playground.