User
in package
implements
Horde_Cli_Modular_Module, Horde_Cli_Modular_ModuleUsage
Uses
HordectlModuleTrait
Import command module for Horde users
Interfaces, Classes, Traits and Enums
- Horde_Cli_Modular_Module
- Horde_Cli_Modular_ModuleUsage
Table of Contents
- $_parentModule : mixed
- $_parsed : mixed
- $_parser : mixed
- $_positional : mixed
- __construct() : mixed
- getBaseOptions() : mixed
- getOptionGroupDescription() : mixed
- getOptionGroupOptions() : mixed
- getOptionGroupTitle() : mixed
- getParentModule() : Horde_Cli_Modular_Module
- getPositionalArgs() : array<string|int, mixed>
- Get the list of possible arguments for this module's position
- getTitle() : string
- Default implementation of getTitle
- getUsage() : mixed
- handleCommandline() : mixed
- Handle commandline given to this module
- hasOptionGroup() : mixed
- import() : mixed
- isRootModule() : mixed
- setParentModule() : mixed
Properties
$_parentModule
private
mixed
$_parentModule
$_parsed
private
mixed
$_parsed
$_parser
private
mixed
$_parser
$_positional
private
mixed
$_positional
Methods
__construct()
public
__construct(Horde_Injector $dependencies) : mixed
Parameters
- $dependencies : Horde_Injector
Return values
mixed —getBaseOptions()
public
getBaseOptions() : mixed
Return values
mixed —getOptionGroupDescription()
public
getOptionGroupDescription() : mixed
Return values
mixed —getOptionGroupOptions()
public
getOptionGroupOptions([mixed $action = null ]) : mixed
Parameters
- $action : mixed = null
Return values
mixed —getOptionGroupTitle()
public
getOptionGroupTitle() : mixed
Return values
mixed —getParentModule()
public
getParentModule() : Horde_Cli_Modular_Module
Return values
Horde_Cli_Modular_Module —getPositionalArgs()
Get the list of possible arguments for this module's position
public
getPositionalArgs() : array<string|int, mixed>
If a module implements a positional, it will be extracted before the commandline is evaluated
Default implementation, override as needed
Return values
array<string|int, mixed> —getTitle()
Default implementation of getTitle
public
getTitle() : string
Override this as needed
Return values
string —The title of the module
getUsage()
public
getUsage() : mixed
Return values
mixed —handleCommandline()
Handle commandline given to this module
public
handleCommandline(array<string|int, mixed> $argv) : mixed
Commandline options and keywords belonging to parent modules have already been removed. The module's PositionalArgs will be checked in second position and removed. Options will only be regarded until the following positional argument.
Position 0 in argv is assumed to be the program name // non-interspersed parser may not tolerate position 0
Parameters
- $argv : array<string|int, mixed>
Return values
mixed —hasOptionGroup()
public
hasOptionGroup() : mixed
Return values
mixed —import()
public
import(string $app, string $resource, array<string|int, mixed> $tree) : mixed
Parameters
- $app : string
- $resource : string
- $tree : array<string|int, mixed>
Return values
mixed —isRootModule()
public
isRootModule() : mixed
Return values
mixed —setParentModule()
public
setParentModule(Horde_Cli_Modular_Module $module) : mixed
Parameters
- $module : Horde_Cli_Modular_Module