\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_by_interface()
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 = null) : 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) : array<mixed,string>

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

Parameters

string $methodname

Returns

array<mixed,string>

get_modules_by_interface()

get_modules_by_interface(string  $classname) : array<mixed,string>

Return a list of all of the modules that extend the specified interface

Parameters

string $classname

Returns

array<mixed,string>

get_modules_with_capability()

get_modules_with_capability(string  $capability, array  $params = array()) : array<mixed,string>

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

Parameters

string $capability
array $params

Returns

array<mixed,string>