PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\plugin\DiskResourceProvider Class Reference
+ Inheritance diagram for pocketmine\plugin\DiskResourceProvider:
+ Collaboration diagram for pocketmine\plugin\DiskResourceProvider:

Public Member Functions

 __construct (string $path)
 
 getResource (string $filename)
 
 getResources ()
 

Detailed Description

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.

Deprecated

Definition at line 42 of file DiskResourceProvider.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\plugin\DiskResourceProvider::__construct ( string $path)

Definition at line 45 of file DiskResourceProvider.php.

Member Function Documentation

◆ getResource()

pocketmine\plugin\DiskResourceProvider::getResource ( string $filename)

Gets an embedded resource on the plugin file. WARNING: You must close the resource given using fclose()

Returns
null|resource Resource data, or null

Implements pocketmine\plugin\ResourceProvider.

Definition at line 55 of file DiskResourceProvider.php.

◆ getResources()

pocketmine\plugin\DiskResourceProvider::getResources ( )

Returns all the resources packaged with the plugin in the form ["path/in/resources" => SplFileInfo]

Returns
\SplFileInfo[]

Implements pocketmine\plugin\ResourceProvider.

Definition at line 71 of file DiskResourceProvider.php.


The documentation for this class was generated from the following file: