\Box\Brainy\RuntimePluginLoader

Summary

Methods
Properties
Constants
loadPlugin()
getPluginFilename()
getPluginFunction()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

loadPlugin()

loadPlugin(string  $type, string  $name, \Box\Brainy\Brainy  $brainy) : boolean

Loads a plugin

Parameters

string $type

The type of the plugin

string $name

The plugin name

\Box\Brainy\Brainy $brainy

The instance of Brainy to load it for

Returns

boolean —

Whether the plugin was loaded successfully

getPluginFilename()

getPluginFilename(string  $type, string  $name) : string

Return the filename of the plugin given its name and type

Parameters

string $type

The type of the plugin

string $name

The name of the plugin

Returns

string —

The filename of the plugin

getPluginFunction()

getPluginFunction(string  $type, string  $name) : string

Return the name of a plugin function given its name and type

Parameters

string $type

The type of the plugin

string $name

The name of the plugin

Returns

string —

The name of the plugin's function