VFSResource
Hierarchy
- Resource<File>
- VFSResource
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
Creates a new instance of
VFSResource
.Parameters
resource: VFSReference
The VFS reference.
optional_progress: ProgressTracker
Returns VFSResource
Properties
publicoptional_progress
Accessors
isAsync
Whether this Resource is loaded asynchronously
Returns boolean
name
The name of the referenced file
Returns string
progress
Returns undefined | ProgressTracker
Parameters
value: undefined | ProgressTracker
Returns void
Methods
resolve
Returns Promise<File>
setPlayground
Parameters
playground: UniversalPHP
Returns void
staticcreate
Creates a new Resource based on the given file reference
Parameters
ref: FileReference | DirectoryReference
The file reference to create the Resource for
options: { corsProxy?: string; progress?: ProgressTracker; semaphore?: default }
Additional options for the Resource
Returns Resource<Directory | File>
A new Resource instance
A
Resource
that represents a file in the VFS (virtual file system) of the playground.