PHP Class Horde_Cli_Modular_Modules, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Inheritance: implements IteratorAggregate, implements Countable
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $parameters = null ) Constructor.
count ( ) : integer Implementation of Countable count() method. Returns the number of modules.
getIterator ( )
listModules ( ) : array List the available modules.

Private Methods

Méthode Description
_initModules ( ) : null Initialize the list of module class names.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $parameters = null )
$parameters array Options for this instance.
 - directory: (string) The path to the directory that holds the modules.
 - exclude:   (array) Exclude these modules from the list.

count() public méthode

Implementation of Countable count() method. Returns the number of modules.
public count ( ) : integer
Résultat integer Number of modules.

getIterator() public méthode

public getIterator ( )

listModules() public méthode

List the available modules.
public listModules ( ) : array
Résultat array The list of modules.