\Horde_Cli_Modular_Modules

The Horde_Cli_Modular_Modules:: class handles a set of CLI modules.

Summary

Methods
Properties
Constants
__construct()
listModules()
getIterator()
count()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_initModules()
$_parameters
$_modules
N/A

Properties

$_parameters

$_parameters : array

Parameters.

Type

array

$_modules

$_modules : array

The available modules.

Type

array

Methods

__construct()

__construct(array  $parameters = null) 

Constructor.

Parameters

array $parameters

Options for this instance.

 - directory: (string) The path to the directory that holds the modules.
 - exclude:   (array) Exclude these modules from the list.

listModules()

listModules() : array

List the available modules.

Returns

array —

The list of modules.

getIterator()

getIterator() 

count()

count() : integer

Implementation of Countable count() method. Returns the number of modules.

Returns

integer —

Number of modules.

_initModules()

_initModules() : NULL

Initialize the list of module class names.

Throws

\Horde_Cli_Modular_Exception

In case the list of modules could not be established.

Returns

NULL