SUPPRESS_HELP
SUPPRESS_HELP
Defines the Option class and some standard value-checking functions.
Instance attributes: shortOpts : [string] longOpts : [string]
action : string type : string dest : string default : any nargs : int const : any choices : [string] callback : function callbackArgs : (any*) help : string metavar : string
$TYPE_CHECKER :
Dictionary of argument checking functions, which convert and validate option arguments according to the option type.
Signature of checking functions is:
mixed function(Horde_Argv_Option $option, string $opt, string $value)
where
The return value should be in the appropriate PHP type for $option->type -- eg. an integer if $option->type == 'int'.
If no checker is defined for a type, arguments will be unchecked and remain strings.
$CHECK_METHODS :
A list of unbound method objects.
They are called by the constructor, in order, after all attributes are initialized. The list is created and filled in later, after all the methods are actually defined. (I just put it here because I like to define and document all class attributes in the same place.) Subclasses that add another check*() method should define their own CHECK_METHODS list that adds their check method to those from this class.