Documentation

Base
in package
implements Module, Horde_Cli_Modular_ModuleUsage

Components_Module_Base:: provides core functionality for the different modules.

Copyright 2010-2020 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Tags
category

Horde

author

Gunnar Wrobel wrobel@pardus.de

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

Interfaces, Classes, Traits and Enums

Module
Components_Module:: represents a task for a Horde component.
Horde_Cli_Modular_ModuleUsage

Table of Contents

$_dependencies  : Dependencies
__construct()  : mixed
Constructor.
getActions()  : array<string|int, mixed>
Return the action arguments supported by this module.
getBaseOptions()  : array<string|int, mixed>
Get a set of base options that this module adds to the CLI argument parser.
getContextOptionHelp()  : array<string|int, mixed>
Return the options that should be explained in the context help.
getHelp()  : string
Return the help text for the specified action.
getTitle()  : string
Get the usage title for this module.
getUsage()  : string
Get the usage description for this module.
hasOptionGroup()  : bool
Indicate if the module provides an option group.

Properties

Methods

__construct()

Constructor.

public __construct(Dependencies $_dependencies) : mixed
Parameters
$_dependencies : Dependencies

The dependency provider.

Return values
mixed

getActions()

Return the action arguments supported by this module.

public getActions() : array<string|int, mixed>
Return values
array<string|int, mixed>

A list of supported action arguments.

getBaseOptions()

Get a set of base options that this module adds to the CLI argument parser.

public getBaseOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

The options.

getContextOptionHelp()

Return the options that should be explained in the context help.

public getContextOptionHelp() : array<string|int, mixed>
Return values
array<string|int, mixed>

A list of option help texts.

getHelp()

Return the help text for the specified action.

public getHelp(string $action) : string
Parameters
$action : string

The action.

Return values
string

The help text.

getTitle()

Get the usage title for this module.

public getTitle() : string
Return values
string

The title.

getUsage()

Get the usage description for this module.

public getUsage() : string
Return values
string

The description.

hasOptionGroup()

Indicate if the module provides an option group.

public hasOptionGroup() : bool
Return values
bool

True if an option group should be added.

Search results