\module_helper

The module helper class is an abstract class, intended to help separate functionality into different classes Each instance of this class is a singleton.

Summary

Methods
Properties
Constants
get_preference()
get_modules_with_method()
get_modules_with_capability()
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

get_preference()

get_preference(string $modulename, string $preference, string $dflt) : string

Get a preference from a named module.

Parameters

string $modulename

The module name.

string $preference

The preference name.

string $dflt

The default value to return.

Returns

string

get_modules_with_method()

get_modules_with_method(string $methodname) : string[]

Return a list of all of the modules that have the specified method.

Parameters

string $methodname

Returns

string[]

get_modules_with_capability()

get_modules_with_capability(string $capability, array $params) : string[]

Get a list of all of the modules that have the specified capability.

Parameters

string $capability
array $params

Returns

string[]