LocalPluginResourceStorage
in package
implements
ResourceStorage
Class LocalPluginResourceStorage
Interfaces, Classes and Traits
- ResourceStorage
- Interface ResourceStorage
Table of Contents
- $paths : array<string|int, mixed>
- Paths to the directories containing the plugins.
- $suffix : string
- Suffix of the plugin files.
- __construct() : mixed
- LocalPluginResourceStorage constructor.
- download() : string|null
- Local plugins are already included (downloaded) in the zip file.
- get_supported_resource() : string
- Get the supported resource.
Properties
$paths
Paths to the directories containing the plugins.
protected
array<string|int, mixed>
$paths
= array()
$suffix
Suffix of the plugin files.
protected
string
$suffix
= 'plugins'
Methods
__construct()
LocalPluginResourceStorage constructor.
public
__construct(string $path) : mixed
Parameters
- $path : string
-
The path to the directory containing the plugins.
Return values
mixed —download()
Local plugins are already included (downloaded) in the zip file.
public
download(string $slug) : string|null
Return the full path.
Parameters
- $slug : string
-
The slug of the plugin to be downloaded.
Return values
string|null —get_supported_resource()
Get the supported resource.
public
get_supported_resource() : string