[ class tree: ] [ index: ] [ all elements ]

Index of all elements

[ a ] [ b ] [ c ] [ d ] [ e ] [ f ] [ g ] [ h ] [ l ] [ m ] [ n ] [ o ] [ p ] [ r ] [ s ] [ t ] [ u ] [ v ] [ w ] [ x ] [ _ ]

a

$action
in file Option.php, variable Console_CommandLine_Option::$action
    The option action, defaults to StoreString.
$actions
in file CommandLine.php, variable Console_CommandLine::$actions
    Array of valid actions for an option, this array will also store user registered actions.
$action_params
in file Option.php, variable Console_CommandLine_Option::$action_params
    An associative array of additional params to pass to the class corresponding to the action, this array will also be passed to the callback defined for an action of type Callback, Example:
$add_help_option
in file CommandLine.php, variable Console_CommandLine::$add_help_option
    Boolean that determine if the command line parser should add the help (-h, --help) option automatically.
$add_version_option
in file CommandLine.php, variable Console_CommandLine::$add_version_option
    Boolean that determine if the command line parser should add the version (-v, --version) option automatically.
$args
in file Result.php, variable Console_CommandLine_Result::$args
    The result arguments array.
$args
in file CommandLine.php, variable Console_CommandLine::$args
    An array of Console_CommandLine_Argument objects.
$argument_optional
in file Option.php, variable Console_CommandLine_Option::$argument_optional
    For options that expect an argument, this property tells the parser if the argument is optional and can be ommited
addArgument
in file CommandLine.php, method Console_CommandLine::addArgument()
    Add an argument with the given $name to the command line parser.
addCommand
in file CommandLine.php, method Console_CommandLine::addCommand()
    Add a sub-command to the command line parser.
addOption
in file CommandLine.php, method Console_CommandLine::addOption()
    Add an option to the command line parser.
argumentList
in file Default.php, method Console_CommandLine_Renderer_Default::argumentList()
    Render the arguments list that will be displayed to the user, you can override this method if you want to change the look of the list.
ARGUMENT_REQUIRED
in file Exception.php, class constant Console_CommandLine_Exception::ARGUMENT_REQUIRED
    Exception code constants.
Action.php
procedural page Action.php
Argument.php
procedural page Argument.php
top

b

build
in file Exception.php, method Console_CommandLine_Exception::build()
    Convenience method that builds the exception with the array of params by calling the message provider class.
top

c

$callback
in file Option.php, variable Console_CommandLine_Option::$callback
    The callback function (or method) to call for an action of type Callback, this can be any callable supported by the php function call_user_func.
$choices
in file Option.php, variable Console_CommandLine_Option::$choices
    An array of possible values for the option if this array is not empty and the value passed is not in the array an exception is raised.
$command
in file Result.php, variable Console_CommandLine_Result::$command
    A result instance for the command.
$commands
in file CommandLine.php, variable Console_CommandLine::$commands
    An array of Console_CommandLine_Command objects (sub commands).
$command_name
in file Result.php, variable Console_CommandLine_Result::$command_name
    Name of the command invoked by the user, false if no command invoked.
columnWrap
in file Default.php, method Console_CommandLine_Renderer_Default::columnWrap()
    Wraps the text passed to the method at the specified width.
commandList
in file Default.php, method Console_CommandLine_Renderer_Default::commandList()
    Render the command list that will be displayed to the user, you can override this method if you want to change the look of the list.
commandUsageLine
in file Default.php, method Console_CommandLine_Renderer_Default::commandUsageLine()
    Return the command line usage message for subcommands
Console_CommandLine
in file CommandLine.php, class Console_CommandLine
    Main class for parsing command line options and arguments.
Callback.php
procedural page Callback.php
Counter.php
procedural page Counter.php
Command.php
procedural page Command.php
CommandLine.php
procedural page CommandLine.php
Console_CommandLine_Action
in file Action.php, class Console_CommandLine_Action
    Class that represent an option action.
Console_CommandLine_Action_Callback
in file Callback.php, class Console_CommandLine_Action_Callback
    Class that represent the Callback action.
Console_CommandLine_Action_Counter
in file Counter.php, class Console_CommandLine_Action_Counter
    Class that represent the Version action.
Console_CommandLine_Action_Help
in file Help.php, class Console_CommandLine_Action_Help
    Class that represent the Help action, a special action that displays the help message, telling the user how to use the program.
Console_CommandLine_Action_Password
in file Password.php, class Console_CommandLine_Action_Password
    Class that represent the Password action, a special action that allow the user to specify the password on the commandline or to be prompted for entering it.
Console_CommandLine_Action_StoreArray
in file StoreArray.php, class Console_CommandLine_Action_StoreArray
    Class that represent the StoreArray action.
Console_CommandLine_Action_StoreFalse
in file StoreFalse.php, class Console_CommandLine_Action_StoreFalse
    Class that represent the StoreFalse action.
Console_CommandLine_Action_StoreFloat
in file StoreFloat.php, class Console_CommandLine_Action_StoreFloat
    Class that represent the StoreFloat action.
Console_CommandLine_Action_StoreInt
in file StoreInt.php, class Console_CommandLine_Action_StoreInt
    Class that represent the StoreInt action.
Console_CommandLine_Action_StoreString
in file StoreString.php, class Console_CommandLine_Action_StoreString
    Class that represent the StoreString action.
Console_CommandLine_Action_StoreTrue
in file StoreTrue.php, class Console_CommandLine_Action_StoreTrue
    Class that represent the StoreTrue action.
Console_CommandLine_Action_Version
in file Version.php, class Console_CommandLine_Action_Version
    Class that represent the Version action, a special action that displays the version string of the program.
Console_CommandLine_Argument
in file Argument.php, class Console_CommandLine_Argument
    Class that represent a command line argument.
Console_CommandLine_Command
in file Command.php, class Console_CommandLine_Command
    Class that represent a command with option and arguments.
Console_CommandLine_Element
in file Element.php, class Console_CommandLine_Element
    Class that represent a command line element (an option, or an argument).
Console_CommandLine_Exception
in file Exception.php, class Console_CommandLine_Exception
    Class for exceptions raised by the Console_CommandLine package.
Console_CommandLine_MessageProvider
in file MessageProvider.php, class Console_CommandLine_MessageProvider
    Message providers common interface, all message providers must implement this interface.
Console_CommandLine_MessageProvider_Default
in file Default.php, class Console_CommandLine_MessageProvider_Default
    Lightweight class that manages messages used by Console_CommandLine package, allowing the developper to customize these messages, for example to internationalize a command line frontend.
Console_CommandLine_Option
in file Option.php, class Console_CommandLine_Option
    Class that represent a commandline option.
Console_CommandLine_Outputter
in file Outputter.php, class Console_CommandLine_Outputter
    Outputters common interface, all outputters must implement this interface.
Console_CommandLine_Outputter_Default
in file Default.php, class Console_CommandLine_Outputter_Default
    Console_CommandLine default Outputter.
Console_CommandLine_Renderer
in file Renderer.php, class Console_CommandLine_Renderer
    Renderers common interface, all renderers must implement this interface.
Console_CommandLine_Renderer_Default
in file Default.php, class Console_CommandLine_Renderer_Default
    Console_CommandLine default renderer.
Console_CommandLine_Result
in file Result.php, class Console_CommandLine_Result
    A lightweight class to store the result of the command line parsing.
Console_CommandLine_XmlParser
in file XmlParser.php, class Console_CommandLine_XmlParser
    Parser for command line xml definitions.
top

d

$default
in file Option.php, variable Console_CommandLine_Option::$default
    The default value of the option if not provided on the command line.
$description
in file CommandLine.php, variable Console_CommandLine::$description
    A description text that will be displayed in the help message.
$description
in file Element.php, variable Console_CommandLine_Element::$description
    The element description.
Default.php
procedural page Default.php
Default.php
procedural page Default.php
Default.php
procedural page Default.php
description
in file Default.php, method Console_CommandLine_Renderer_Default::description()
    Return the command line description message
dispatchAction
in file Option.php, method Console_CommandLine_Option::dispatchAction()
    Format the value $value according to the action of the option and update the passed Console_CommandLine_Result object.
displayError
in file CommandLine.php, method Console_CommandLine::displayError()
    Display an error to the user and exit with $exitCode.
displayUsage
in file CommandLine.php, method Console_CommandLine::displayUsage()
    Display the usage help message to the user and exit with $exitCode
displayVersion
in file CommandLine.php, method Console_CommandLine::displayVersion()
    Display the program version to the user
top

e

$errors
in file CommandLine.php, variable Console_CommandLine::$errors
    Error messages.
Element.php
procedural page Element.php
Exception.php
procedural page Exception.php
ex1.php
procedural page ex1.php
ex2.php
procedural page ex2.php
error
in file Default.php, method Console_CommandLine_Renderer_Default::error()
    Return a formatted error message
error
in file Renderer.php, method Console_CommandLine_Renderer::error()
    Return a formatted error message
execute
in file StoreFloat.php, method Console_CommandLine_Action_StoreFloat::execute()
    Execute the action with the value entered by the user.
execute
in file StoreInt.php, method Console_CommandLine_Action_StoreInt::execute()
    Execute the action with the value entered by the user.
execute
in file Version.php, method Console_CommandLine_Action_Version::execute()
    Execute the action with the value entered by the user.
execute
in file StoreTrue.php, method Console_CommandLine_Action_StoreTrue::execute()
    Execute the action with the value entered by the user.
execute
in file StoreFalse.php, method Console_CommandLine_Action_StoreFalse::execute()
    Execute the action with the value entered by the user.
execute
in file StoreString.php, method Console_CommandLine_Action_StoreString::execute()
    Execute the action with the value entered by the user.
execute
in file Help.php, method Console_CommandLine_Action_Help::execute()
    Execute the action with the value entered by the user.
execute
in file Counter.php, method Console_CommandLine_Action_Counter::execute()
    Execute the action with the value entered by the user.
execute
in file Action.php, method Console_CommandLine_Action::execute()
    Execute the action with the value entered by the user.
execute
in file StoreArray.php, method Console_CommandLine_Action_StoreArray::execute()
    Execute the action with the value entered by the user.
execute
in file Password.php, method Console_CommandLine_Action_Password::execute()
    Execute the action with the value entered by the user.
execute
in file Callback.php, method Console_CommandLine_Action_Callback::execute()
    Execute the action with the value entered by the user.
expectsArgument
in file Option.php, method Console_CommandLine_Option::expectsArgument()
    Return true if the option requires one or more argument and false otherwise.
top

f

$force_posix
in file CommandLine.php, variable Console_CommandLine::$force_posix
    Boolean that tells the parser to be POSIX compliant, POSIX demands the following behavior: the first non-option stops option processing.
findOption
in file CommandLine.php, method Console_CommandLine::findOption()
    Find the option that matches the given short_name (ex: -v), long_name (ex: --verbose) or name (ex: verbose).
fromXmlFile
in file CommandLine.php, method Console_CommandLine::fromXmlFile()
    Return a command line parser instance built from an xml file.
fromXmlString
in file CommandLine.php, method Console_CommandLine::fromXmlString()
    Return a command line parser instance built from an xml string.
top

g

get
in file MessageProvider.php, method Console_CommandLine_MessageProvider::get()
    Retrieve the given string identifier corresponding message.
get
in file Default.php, method Console_CommandLine_MessageProvider_Default::get()
    Retrieve the given string identifier corresponding message.
getResult
in file Action.php, method Console_CommandLine_Action::getResult()
    Convenience method to retrieve the value of result->options[name].
top

h

$help_name
in file Element.php, variable Console_CommandLine_Element::$help_name
    The name of variable displayed in the usage message, if no set it defaults to the "name" property.
Help.php
procedural page Help.php
top

l

$line_width
in file Default.php, variable Console_CommandLine_Renderer_Default::$line_width
    integer that define the max width of the help text
$long_name
in file Option.php, variable Console_CommandLine_Option::$long_name
    The option long name (ex: --verbose).
top

m

$messages
in file Default.php, variable Console_CommandLine_MessageProvider_Default::$messages
    Associative array of messages
$message_provider
in file CommandLine.php, variable Console_CommandLine::$message_provider
    The command line message provider instance.
$multiple
in file Argument.php, variable Console_CommandLine_Argument::$multiple
    If set to true argument values will be stored in an array.
MessageProvider.php
procedural page MessageProvider.php
top

n

$name
in file CommandLine.php, variable Console_CommandLine::$name
    The name of the program, if not given it defaults to argv[0].
$name
in file Element.php, variable Console_CommandLine_Element::$name
    The element name.
name
in file Default.php, method Console_CommandLine_Renderer_Default::name()
    return the full name of the program or the sub command
top

o

$option
in file Action.php, variable Console_CommandLine_Action::$option
    A reference to the option instance.
$options
in file Result.php, variable Console_CommandLine_Result::$options
    The result options associative array.
$options
in file CommandLine.php, variable Console_CommandLine::$options
    An array of Console_CommandLine_Option objects.
$outputter
in file CommandLine.php, variable Console_CommandLine::$outputter
    The command line parser outputter instance.
Option.php
procedural page Option.php
Outputter.php
procedural page Outputter.php
optionList
in file Default.php, method Console_CommandLine_Renderer_Default::optionList()
    Render the options list that will be displayed to the user, you can override this method if you want to change the look of the list.
OPTION_UNKNOWN
in file Exception.php, class constant Console_CommandLine_Exception::OPTION_UNKNOWN
    Exception code constants.
OPTION_VALUE_REQUIRED
in file Exception.php, class constant Console_CommandLine_Exception::OPTION_VALUE_REQUIRED
    Exception code constants.
OPTION_VALUE_TYPE_ERROR
in file Exception.php, class constant Console_CommandLine_Exception::OPTION_VALUE_TYPE_ERROR
    Exception code constants.
OPTION_VALUE_UNEXPECTED
in file Exception.php, class constant Console_CommandLine_Exception::OPTION_VALUE_UNEXPECTED
    Exception code constants.
top

p

$parent
in file CommandLine.php, variable Console_CommandLine::$parent
    Parent, only relevant in Command objects but left here for interface convenience.
$parser
in file Default.php, variable Console_CommandLine_Renderer_Default::$parser
    An instance of Console_CommandLine
$parser
in file Action.php, variable Console_CommandLine_Action::$parser
    A reference to the parser instance.
Password.php
procedural page Password.php
parse
in file XmlParser.php, method Console_CommandLine_XmlParser::parse()
    Parse the given xml definition file and return a Console_CommandLine instance constructed with the xml data.
parse
in file CommandLine.php, method Console_CommandLine::parse()
    Parse the command line arguments and return a Console_CommandLine_Result object.
parseString
in file XmlParser.php, method Console_CommandLine_XmlParser::parseString()
    Parse the given xml definition string and return a Console_CommandLine instance constructed with the xml data.
parseToken
in file CommandLine.php, method Console_CommandLine::parseToken()
    Parse the command line token and modify *by reference* the $options and $args arrays.
top

r

$renderer
in file CommandLine.php, variable Console_CommandLine::$renderer
    The command line parser renderer instance.
$result
in file Action.php, variable Console_CommandLine_Action::$result
    A reference to the result instance.
Renderer.php
procedural page Renderer.php
Result.php
procedural page Result.php
registerAction
in file CommandLine.php, method Console_CommandLine::registerAction()
    Register a custom action for the parser, an example:
top

s

$short_name
in file Option.php, variable Console_CommandLine_Option::$short_name
    The option short name (ex: -v).
StoreArray.php
procedural page StoreArray.php
StoreFalse.php
procedural page StoreFalse.php
StoreFloat.php
procedural page StoreFloat.php
StoreInt.php
procedural page StoreInt.php
StoreString.php
procedural page StoreString.php
StoreTrue.php
procedural page StoreTrue.php
setResult
in file Action.php, method Console_CommandLine_Action::setResult()
    Convenience method to assign the result->options[name] value.
stderr
in file Outputter.php, method Console_CommandLine_Outputter::stderr()
    Process the output for a message that should be displayed on STDERR
stderr
in file Default.php, method Console_CommandLine_Outputter_Default::stderr()
    Writes the message $msg to STDERR
stdout
in file Outputter.php, method Console_CommandLine_Outputter::stdout()
    Process the output for a message that should be displayed on STDOUT
stdout
in file Default.php, method Console_CommandLine_Outputter_Default::stdout()
    Writes the message $msg to STDOUT
top

t

toString
in file Option.php, method Console_CommandLine_Option::toString()
    Return the string representation of the option.
toString
in file Element.php, method Console_CommandLine_Element::toString()
    Return the string representation of the argument.
triggerError
in file CommandLine.php, method Console_CommandLine::triggerError()
    A wrapper for programming errors triggering.
top

u

usage
in file Default.php, method Console_CommandLine_Renderer_Default::usage()
    Return the full usage message
usage
in file Renderer.php, method Console_CommandLine_Renderer::usage()
    Return the full usage message.
usageLine
in file Default.php, method Console_CommandLine_Renderer_Default::usageLine()
    Return the command line usage message
top

v

$version
in file CommandLine.php, variable Console_CommandLine::$version
    A string that represents the version of the program, if this property is not empty and property add_version_option is not set to false, the command line parser will add a --version option, that will display the property content.
Version.php
procedural page Version.php
validate
in file XmlParser.php, method Console_CommandLine_XmlParser::validate()
    Validate the xml definition using Relax NG
validate
in file Option.php, method Console_CommandLine_Option::validate()
    Validate the option instance.
validate
in file Element.php, method Console_CommandLine_Element::validate()
    Validate the option instance.
validate
in file Argument.php, method Console_CommandLine_Argument::validate()
    Validate the option instance.
version
in file Default.php, method Console_CommandLine_Renderer_Default::version()
    Return the program version string
version
in file Renderer.php, method Console_CommandLine_Renderer::version()
    Return the program version string.
top

w

wrap
in file Default.php, method Console_CommandLine_Renderer_Default::wrap()
    Wraps the text passed to the method.
top

x

XmlParser.php
procedural page XmlParser.php
top

_

__construct
in file Option.php, method Console_CommandLine_Option::__construct()
    Constructor.
__construct
in file Renderer.php, method Console_CommandLine_Renderer::__construct()
    Constructor.
__construct
in file Element.php, method Console_CommandLine_Element::__construct()
    Constructor.
__construct
in file Default.php, method Console_CommandLine_Renderer_Default::__construct()
    Constructor.
__construct
in file CommandLine.php, method Console_CommandLine::__construct()
    Constructor.
__construct
in file Action.php, method Console_CommandLine_Action::__construct()
    Constructor
top

Documentation generated on Mon, 11 Mar 2019 15:17:13 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.