[Zend_Console_Getopt] element index

Package indexes

All elements
a c e g m p s t u z _
_
top
Variable $_argv
Stores the command-line arguments for the calling applicaion.
Variable $_getoptConfig
Defaults for getopt configuration are: ruleMode is 'zend' format, dashDash (--) token is enabled, ignoreCase is not enabled.
Variable $_options
Stores options given by the user in the current invocation of the application, as well as parameters given in options.
Variable $_parsed
State of the options: parsed or not yet parsed?
Variable $_progname
Stores the name of the calling applicaion.
Variable $_remainingArgs
Stores the command-line arguments other than options.
Variable $_ruleMap
Stores alternate spellings of legal options.
Variable $_rules
Stores the list of legal options for this application.
Method _addRulesModeGnu
Define legal options using the gnu-style format.
Method _addRulesModeZend
Define legal options using the Zend-style format.
Method _checkParameterType
Return true if the parameter is in a valid format for the option $flag.
Method _parseLongOption
Parse command-line arguments for a single long option.
Method _parseShortOptionCluster
Parse command-line arguments for short options.
Method _parseSingleOption
Parse command-line arguments for a single option.
Method __construct
The constructor takes one to three parameters.
Method __construct
Method __get
Return the state of the option seen on the command line of the current application invocation. This function returns true, or the parameter to the option, if any. If the option was not given, this function returns null.
Method __isset
Test whether a given option has been seen.
Method __set
Set the value for a given option.
Method __toString
Return the current set of options and parameters seen as a string.
Method __unset
Unset an option.
a
top
Method addArguments
Define additional command-line arguments.
Method addRules
Define additional option rules.
c
top
Class Constant CONFIG_DASHDASH
Class Constant CONFIG_IGNORECASE
Class Constant CONFIG_RULEMODE
These are constants for optional behavior of this class.
e
top
Page Exception.php
Exception.php in Exception.php
g
top
Page Getopt.php
Getopt.php in Getopt.php
Method getOption
Return the state of the option seen on the command line of the current application invocation.
Method getOptions
Return a list of options that have been seen in the current argv.
Method getRemainingArgs
Return the arguments from the command-line following all options found.
Method getUsageMessage
Return a useful option reference, formatted for display in an error message.
Method getUsageMessage
m
top
Class Constant MODE_GNU
Class Constant MODE_ZEND
The options for a given application can be in multiple formats.
p
top
Class Constant PARAM_OPTIONAL
Class Constant PARAM_REQUIRED
Constant tokens for various symbols used in the mode_zend rule format.
Method parse
Parse command-line arguments and find both long and short options.
s
top
Method setAliases
Define aliases for options.
Method setArguments
Define full set of command-line arguments.
Method setHelp
Define help messages for options.
Method setOption
Define one configuration option as a key/value pair.
Method setOptions
Define multiple configuration options from an associative array.
t
top
Method toArray
Return the current set of options and parameters seen as an array of canonical options and parameters.
Method toJson
Return the current set of options and parameters seen in Json format.
Method toString
Return the current set of options and parameters seen as a string.
Method toXml
Return the current set of options and parameters seen in XML format.
Class Constant TYPE_INTEGER
Class Constant TYPE_STRING
Class Constant TYPE_WORD
u
top
Variable $usage
z
top
Class Zend_Console_Getopt
Zend_Console_Getopt in Getopt.php
Zend_Console_Getopt is a class to parse options for command-line applications.
Class Zend_Console_Getopt_Exception
a c e g m p s t u z _