JPluginHelper::importPlugin
Loads all the plugin files for a particular type if no specific plugin is specified otherwise only the specific plugin is loaded.
Signature
public function importPlugin(string
$type,
[JEventDispatcher
$plugin = null,
[JEventDispatcher
$autocreate = true,
[JEventDispatcher
$dispatcher = null]]] )
Parameters
-
$type
- The plugin type, relates to the sub-directory in the plugins directory.
-
$plugin
- The plugin name.
-
$autocreate
- Autocreate the plugin.
-
$dispatcher
- Optionally allows the plugin to use a different dispatcher.
Returns
- boolean
- True on success.