|
PocketMine-MP 5.39.3 git-400eb2dddf91a9c112aa09f3b498ffc8c85e98ed
|
Inheritance diagram for pocketmine\plugin\DiskResourceProvider:
Collaboration diagram for pocketmine\plugin\DiskResourceProvider:Public Member Functions | |
| __construct (string $path) | |
| getResource (string $filename) | |
| getResources () | |
Provides resources from the given plugin directory on disk. The path may be prefixed with a specific access protocol to enable special types of access.
Definition at line 42 of file DiskResourceProvider.php.
| pocketmine\plugin\DiskResourceProvider::__construct | ( | string | $path | ) |
Definition at line 45 of file DiskResourceProvider.php.
| pocketmine\plugin\DiskResourceProvider::getResource | ( | string | $filename | ) |
Gets an embedded resource on the plugin file. WARNING: You must close the resource given using fclose()
Implements pocketmine\plugin\ResourceProvider.
Definition at line 55 of file DiskResourceProvider.php.
| pocketmine\plugin\DiskResourceProvider::getResources | ( | ) |
Returns all the resources packaged with the plugin in the form ["path/in/resources" => SplFileInfo]
Implements pocketmine\plugin\ResourceProvider.
Definition at line 71 of file DiskResourceProvider.php.