HasModulesTrait
Table of Contents
- $_modules : mixed
- count() : int
- Implementation of Countable count() method. Returns the number of modules.
- getIterator() : mixed
- listModules() : array<string|int, mixed>
- List the available modules.
- _initModules() : mixed
- Initialize the list of direct submodules to the current module
Properties
$_modules
private
mixed
$_modules
= []
Methods
count()
Implementation of Countable count() method. Returns the number of modules.
public
count() : int
Return values
int —Number of modules.
getIterator()
public
getIterator() : mixed
Return values
mixed —listModules()
List the available modules.
public
listModules() : array<string|int, mixed>
Return values
array<string|int, mixed> —The list of modules.
_initModules()
Initialize the list of direct submodules to the current module
private
_initModules(Horde_Injector $dependencies, string $prefix, string $directory[, array<string|int, mixed> $exclude = [] ]) : mixed
First check a certain folder for files and assume they adhere to a certain class name schema TODO: Then check all registered apps for a list of well known classnames
Initialize all modules and assign them their parent
Parameters
- $dependencies : Horde_Injector
- $prefix : string
- $directory : string
- $exclude : array<string|int, mixed> = []