This operations class handles reading and writing simple plugins.
this is a singleton class.
| package |
CMS |
|---|---|
| license |
GPL |
| since | 2.3 |
| author |
Robert Campbell |
__construct()
get_instance() : \CMSMS\simple_plugin_operations
get_list() : array<mixed,string>|null
Reads from the assets/simple_plugins directory.
array<mixed,string>|null
get_plugin_filename(string $name) : string
string $nameThe plugin name
string
plugin_exists(string $name) : boolean
string $nameThe plugin name
boolean
is_valid_plugin_name(string $name) : boolean
string $nameThe plugin name
boolean
load_plugin(string $name) : string
string $nameThe plugin name
string
The name of the callable that this plugin is loaded into.
call_plugin(string $name, array $args = array()) : mixed
string $nameThe plugin name to call
array $argsOptional plugin arguments
mixed