Horde_Cli_Modular_ModuleProvider
in package
The Horde_Cli_Modular_ModuleProvider:: class provides access to a single module.
Tags
Table of Contents
- $_dependencies : mixed
- Constructor argument for CLI modules. Likely to be a Horde_Injector instance.
- $_instances : array<string|int, mixed>
- A cache for initialized module instances.
- $_prefix : string
- Class prefix.
- __construct() : mixed
- Constructor.
- getModule() : Horde_Cli_Modular_Module
- Return the specified module.
- createModule() : Horde_Cli_Modular_Module
- Create the specified module.
Properties
$_dependencies
Constructor argument for CLI modules. Likely to be a Horde_Injector instance.
private
mixed
$_dependencies
$_instances
A cache for initialized module instances.
private
array<string|int, mixed>
$_instances
$_prefix
Class prefix.
private
string
$_prefix
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $parameters = null ]) : mixed
Parameters
- $parameters : array<string|int, mixed> = null
-
Options for this instance.
- prefix: The module class name prefix. - dependencies: Constructor argument for CLI modules.
Return values
mixed —getModule()
Return the specified module.
public
getModule(string $module) : Horde_Cli_Modular_Module
Parameters
- $module : string
-
The desired module.
Tags
Return values
Horde_Cli_Modular_Module —The module instance.
createModule()
Create the specified module.
protected
createModule(string $module) : Horde_Cli_Modular_Module
Parameters
- $module : string
-
The desired module.
Tags
Return values
Horde_Cli_Modular_Module —The module instance.