ResourceStorages
in package
Class ResourceStorages
Table of Contents
- $storages : array<string|int, mixed>
- Storage collection.
- add_storage() : void
- Add a downloader.
- download() : false|string
- Download the resource.
- is_supported_resource() : bool
- Check if the resource is supported.
Properties
$storages
Storage collection.
protected
array<string|int, mixed>
$storages
= array()
Methods
add_storage()
Add a downloader.
public
add_storage(ResourceStorage $downloader) : void
Parameters
- $downloader : ResourceStorage
-
The downloader to add.
Return values
void —download()
Download the resource.
public
download(string $slug, string $resource_type) : false|string
Parameters
- $slug : string
-
The slug of the resource to download.
- $resource_type : string
-
The resource type to download.
Return values
false|string —is_supported_resource()
Check if the resource is supported.
public
is_supported_resource(string $resource_type) : bool
Parameters
- $resource_type : string
-
The resource type to check.