PHP Class Horde_Cli_Modular, horde

Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_modules Horde_Cli_Modular_Modules Handler for the list of modules.
$_parameters array Parameters.
$_provider Horde_Cli_Modular_ModuleProvider Module provider.

Méthodes publiques

Méthode Description
__construct ( array $parameters = null ) Constructor.
createParser ( ) : Horde_Argv_Parser Create the parser for command line arguments.
getModules ( ) : Horde_Cli_Modular_Modules Return the module handler.
getParserClass ( ) : string Return the class name for the parser that should be used.
getProvider ( ) : Horde_Cli_Modular_ModuleProvider Return the module provider.
getUsage ( ) : string Return the usage description for the help output of the parser.

Méthodes protégées

Méthode Description
_createModules ( ) : Horde_Cli_Modular_Modules Create the module handler.
_createProvider ( ) : Horde_Cli_Modular_ModuleProvider Create the module provider.

Method Details

__construct() public méthode

Constructor.
public __construct ( array $parameters = null )
$parameters array Options for this instance. - parser - class: Class name of the parser that should be used to parse command line arguments. Defaults to 'Horde_Argv_Parser'. - usage: The usage decription shown in the help output of the CLI - modules: Determines the handler for modules. Can be one of: (array) A parameter array. See Horde_Cli_Modular_Modules::__construct() (string) A class name. (object) An instance of Horde_Cli_Modular_Modules - provider: Determines the module provider. Can be one of: (array) A parameter array. See Horde_Cli_Modular_ModuleProvider::__construct() (string) A class name. (object) An instance of Horde_Cli_Modular_ModuleProvider

_createModules() protected méthode

Create the module handler.
protected _createModules ( ) : Horde_Cli_Modular_Modules
Résultat Horde_Cli_Modular_Modules The module handler.

_createProvider() protected méthode

Create the module provider.
protected _createProvider ( ) : Horde_Cli_Modular_ModuleProvider
Résultat Horde_Cli_Modular_ModuleProvider The module provider.

createParser() public méthode

Create the parser for command line arguments.
public createParser ( ) : Horde_Argv_Parser
Résultat Horde_Argv_Parser The parser.

getModules() public méthode

Return the module handler.
public getModules ( ) : Horde_Cli_Modular_Modules
Résultat Horde_Cli_Modular_Modules The module handler.

getParserClass() public méthode

Return the class name for the parser that should be used.
public getParserClass ( ) : string
Résultat string The class name.

getProvider() public méthode

Return the module provider.
public getProvider ( ) : Horde_Cli_Modular_ModuleProvider
Résultat Horde_Cli_Modular_ModuleProvider The module provider.

getUsage() public méthode

Return the usage description for the help output of the parser.
public getUsage ( ) : string
Résultat string The usage description.

Property Details

$_modules protected_oe property

Handler for the list of modules.
protected Horde_Cli_Modular_Modules $_modules
Résultat Horde_Cli_Modular_Modules

$_parameters protected_oe property

Parameters.
protected array $_parameters
Résultat array

$_provider protected_oe property

Module provider.
protected Horde_Cli_Modular_ModuleProvider $_provider
Résultat Horde_Cli_Modular_ModuleProvider