Documentation

OptionGroup extends OptionContainer
in package

An option group allows to group a number of options under a common header and description.

Tags
category

Horde

author

Chuck Hagenbuch chuck@horde.org

author

Mike Naberezny mike@maintainable.com

copyright

2010-2017 Horde LLC

license

http://www.horde.org/licenses/bsd BSD

Table of Contents

$conflictHandler  : mixed
$defaults  : mixed
$description  : mixed
$longOpt  : mixed
$optionClass  : mixed
$optionList  : mixed
$shortOpt  : mixed
$_title  : mixed
__construct()  : mixed
Initialize the option list and related data structures.
__destruct()  : mixed
addOption()  : mixed
addOptions()  : mixed
formatDescription()  : mixed
formatHelp()  : mixed
formatOptionHelp()  : mixed
getDescription()  : mixed
getOption()  : mixed
hasOption()  : mixed
removeOption()  : mixed
setConflictHandler()  : mixed
setDescription()  : mixed
setTitle()  : mixed
_checkConflict()  : mixed
_createOptionList()  : mixed
_createOptionMappings()  : mixed
For use by Horde_Argv_Parser constructor -- create the master option mappings used by this Horde_Argv_Parser and all OptionGroups that it owns.
_shareOptionMappings()  : mixed
For use by OptionGroup constructor -- use shared option mappings from the Horde_Argv_Parser that owns this OptionGroup.

Properties

Methods

__construct()

Initialize the option list and related data structures.

public __construct(mixed $parser, mixed $title[, mixed $description = null ]) : mixed

This method must be provided by subclasses, and it must initialize at least the following instance attributes: optionList, shortOpt, longOpt, defaults.

Parameters
$parser : mixed
$title : mixed
$description : mixed = null
Return values
mixed

__destruct()

public __destruct() : mixed
Return values
mixed

addOptions()

public addOptions(mixed $optionList) : mixed
Parameters
$optionList : mixed
Return values
mixed

formatDescription()

public formatDescription([mixed $formatter = null ]) : mixed
Parameters
$formatter : mixed = null
Return values
mixed

formatHelp()

public formatHelp([mixed $formatter = null ]) : mixed
Parameters
$formatter : mixed = null
Return values
mixed

formatOptionHelp()

public formatOptionHelp([mixed $formatter = null ]) : mixed
Parameters
$formatter : mixed = null
Return values
mixed

getDescription()

public getDescription() : mixed
Return values
mixed

getOption()

public getOption(mixed $opt_str) : mixed
Parameters
$opt_str : mixed
Return values
mixed

hasOption()

public hasOption(mixed $opt_str) : mixed
Parameters
$opt_str : mixed
Return values
mixed

removeOption()

public removeOption(mixed $opt_str) : mixed
Parameters
$opt_str : mixed
Return values
mixed

setConflictHandler()

public setConflictHandler(mixed $handler) : mixed
Parameters
$handler : mixed
Return values
mixed

setDescription()

public setDescription(mixed $description) : mixed
Parameters
$description : mixed
Return values
mixed

setTitle()

public setTitle(mixed $title) : mixed
Parameters
$title : mixed
Return values
mixed

_checkConflict()

protected _checkConflict(mixed $option) : mixed
Parameters
$option : mixed
Return values
mixed

_createOptionList()

protected _createOptionList() : mixed
Return values
mixed

_createOptionMappings()

For use by Horde_Argv_Parser constructor -- create the master option mappings used by this Horde_Argv_Parser and all OptionGroups that it owns.

protected _createOptionMappings() : mixed
Return values
mixed

_shareOptionMappings()

For use by OptionGroup constructor -- use shared option mappings from the Horde_Argv_Parser that owns this OptionGroup.

protected _shareOptionMappings(mixed $parser) : mixed
Parameters
$parser : mixed
Return values
mixed

Search results