Documentation

ResourceProvider

Table of Contents

getResource()  : null|resource
Gets an embedded resource on the plugin file.
getResources()  : array<string|int, SplFileInfo>
Returns all the resources packaged with the plugin in the form ["path/in/resources" => SplFileInfo]

Methods

getResource()

Gets an embedded resource on the plugin file.

public getResource(string $filename) : null|resource

WARNING: You must close the resource given using fclose()

Parameters
$filename : string
Return values
null|resource

Resource data, or null

getResources()

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

public getResources() : array<string|int, SplFileInfo>
Return values
array<string|int, SplFileInfo>

Search results